[json] provide workaround for TStyle::fLineStyle member#8181
[json] provide workaround for TStyle::fLineStyle member#8181linev merged 1 commit intoroot-project:masterfrom
Conversation
|
Starting build on |
|
Doesn't this need a bump of the |
|
I also have same question |
pcanal
left a comment
There was a problem hiding this comment.
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 |
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/