Open agentgt opened 11 years ago
"Unfortuanately the JVM has some limitations on reflection of constructor based arguments so you will have to annotate your constructor with either JDK's @ConstructorProperties"
If the problem is param names, a solution : http://paranamer.codehaus.org
Why not use paranamer + Convention Over Configuration (with some checks) ?
Best regards, Ronan.
Paranamer while a nice library is sort of a work around. Without annotations you have to do something special whether that is include a javadoc jar or use ASM. JSR 330 would require a separate dependency over the much cleaner and already in the JVM @ConstructorProperties
. Paranamer also does not have an @ConstructorProperties
(although I'm sure its trivial to add it).
The object definition determination was not finished for
@ConstructorProperties
.