-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[json] provide workaround for TStyle::fLineStyle member #8181
Conversation
Starting build on |
Doesn't this need a bump of the |
I also have same question |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to also add a I/O customization rule to actually fill the new data member with the date from the old member.
@pcanal Are there such examples? |
I also this is not forward compatible. (Unless we patch all the old release to know about the new version, they will lose the line style information. I may be more beneficial to solve the underlying JSON I/O problem (not supporting base/derived class aliasing) |
That do you mean? |
This does not work. |
I convert into draft, while simple member name change does not work. |
Depends on how you do it. If you use the name as before, but |
It will require search for member names in all base classes for each write operation - huge performance degradation. |
That depends on the implementation. If during the serialization you create a map member-name => value-as-string then it's easy to find dupe member names. |
Starting build on |
it has similar name as field in TAttLine and produces duplicated members in JSON. This makes impossible to correctly read it back
Starting build on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a more compete solution but get around the immediate problem.
it has similar name as field in TAttLine and produces duplicated members
in JSON. This makes impossible to correctly read it back
Solves https://root-forum.cern.ch/t/error-restoring-tstyle-from-json/44879/