-
Notifications
You must be signed in to change notification settings - Fork 77
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
Cannot Deserialize Object with Builder when using AfterBurner and UseValueClassLoader is false #129
Comments
Sounds like issue for Java 9+ Module system (JPMS). Not sure what could be done about that, hoping someone else can comment. |
For Lombok users: I'm experiencing this issue when using For some reason, if I change the |
One way out of this could be to extend |
Reflective access is still needed for the builder method (that's what |
Despite the release of Lombok version 1.18.26, the issue mentioned still persists. However, the workaround suggested by @agargaglione still provides a solution
|
Another workaround (that worked for me), is to switch from Afterburner to Blackbird (if you are on Java 11+). Also Blackbird seems to be the future anyway... |
Description
When using
@JsonDeserialize(builder = ...)
along with@JsonPojoBuilder
, deserialization fails when the Afterburner module is registered withnew ObjectMapper().registerModule(new AfterburnerModule().setUseValueClassLoader(false));
Test cases showing the issue: https://github.com/austinarbor/jackson-afterburner-issue/blob/main/src/test/java/dev/aga/model/ContextTest.java
When
setUseValueClassLoader(true)
everything works as expectedThe text was updated successfully, but these errors were encountered: