question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serialization using constructor.name is brittle (add identifier, merge factories and instance factories)

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
solussdcommented, May 10, 2017

Thanks– I’ve worked around it for now by overriding stuff.

0reactions
dylanvorstercommented, Jan 8, 2018

Fixed! will be available in new major release when it ships

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found