Random ClassCastExceptions #218
Comments
how can I reproduce it? |
that's the tricky question ;-) any suggestions? |
I need more data to solve this, stack trace is not enought in this case. Failing test would be nice. |
I'll try to reproduce it in a test project - but I will definitely need a few days for that because I'm really busy at the moment and need to extract that test case from a larger project. |
quick question: is javers.compare(oldObj, newObj) thread-safe? I figured out that it might happen that the same javers instance was used by multiple threads at the same time |
ok, no hurry, |
I managed to isolate the issue in a smaller project - but as it does still contain some business logic I've sent you the test project as email to javers@javers.org - I hope that works for you, if it doesn't please let me know. Thanks :-) |
Ok , will do |
ok, exception reproduced on my laptop, when running your test |
thanks, that's great to know :-) |
lombok :( |
yes, but therefore you don't have to write any getters and setters on your own ;-) |
yes, I know what it is, but I really dont like it, |
fixed redundant JaversType spawning in TypeMapper
fix is ready, now I need some time for Maven Central sync, stay tuned |
Thank you so much - your dedication for this open source project is amazing. I'll give it a try as soon as it is available on maven central. |
Thanks! release 1.3.14 is now available in Maven Central. Check it out and don't forget to give as a stargazers https://github.com/javers/javers/stargazers if you like JaVers project :) |
Thanks I just tried it and it's working fine for me - I gave you a stargazer Just one more thing I've noticed 1.3.14 does not run on JDK 7 any more as it's missing java.util.function.Function - is that a deiberate change? (Anyway I'm fine with it as I changed my project a few days ago to run with JDK 8) |
No its a mistake, i will fix it, thats because im trying to support java8 types and still beeing runnable on jvm7. |
fix for broken Java7 compatibility
Hello,
I do have a structure of nested entity objects (similar to the large depth employee sample). Even if I re-run the application multiple times with the same data set the exception does not occur at every run - at some runs no exceptions happens, at some runs the exceptions occurs just once even though I'm comparing dozens of objects with nearly the same values (just some primitives do have different values) and at some runs nearly every diff throws the exception.
The text was updated successfully, but these errors were encountered: