Closed hpalma closed 3 weeks ago
So your ask is to support @Value.Default
?
So your ask is to support
@Value.Default
?
Yes, that sums it up :)
We are currently not aiming at full support for immutable.io. The example is just that: an example what is currently possible. We are there not going to extend support ot @Value.Default
or similar.
I'm using immutable.io and the converter configuration exactly as exemplified here.
This works fine, but if i add a @Value.Default to my domain class, like:
I start getting the following error:
java.lang.NoSuchMethodException: org.myapp.ImmutableDomainClass.<init>()
I've found that this is because when you add @Value.Default immutables actually generates a second constructor that receives the Builder as parameter. Because of this then the spring converter is not able to select which constructor to use (because it finds 2) and just fails to initialize.