Serialization using constructor.name is brittle (add identifier, merge factories and instance factories)
See original GitHub issueI use the Google Closure compiler (advanced optimizations) as part of building my ClojureScript code, from which I’m subclassing react-diagrams’ model types. constructor.name
returns different values under different compilation scenarios and is therefore not reliable (e.g., if the serialized diagram is stored in a DB for later deserialization).
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
When does Jackson require no-arg constructor for ...
1 Answer 1 ; Create instance using no-arg constructor, then call setter methods to assign property values. · public int getId ; Create...
Read more >Api proposal: Change JsonSerializerOptions default settings ...
The first change we did was to make our REST internal library now accept a JsonSerializerOptions in its constructor so that it can...
Read more >Jackson JSON - Using @JsonCreator to define constructors or ...
The @JsonCreator annotation can be used on constructors or factory methods for mapping incoming JSON properties to the constructor/factory ...
Read more >What is the concept of Serialization in Java? - Edureka
Serialization in Java is an important concept that deals with the conversion of objects into a byte stream to transport the java objects ......
Read more >HornetQ User Manual - Red Hat on GitHub
HornetQ integrated with a JEE application server; 5.4. ... single JMS Queue and a single JMS Connection Factory instance on the server for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks– I’ve worked around it for now by overriding stuff.
Fixed! will be available in new major release when it ships