How to use Lombok Builder + Jackson + Graal? #11977
Replies: 1 comment
-
After deep diving in the code I think I identified the issue, so I am using module-scan which means that BeanIntrospectionModule is installed. So what BeanIntrospectionModule does is that it makes Jackson use BeanIntrospection rather than reflection to get the setters / getters / builders and other properties. In the above case the code will flow as follows:
For the properties defined and used by the IntrospectionModule has been discovered by Graal and added in the native image But it doesn't set / enrich the build method in the builder which is a bug. Before giving the builder to BeanIntrospectionModule Jackson tries to find the When jackson finally does a check for the _buildMethod to be present here it doesn't find any and throws exception. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use an immutable type like
But when deserialising the value in graal vm I get the error that the build method is not found.
Beta Was this translation helpful? Give feedback.
All reactions