jirm icon indicating copy to clipboard operation
jirm copied to clipboard

Support for @ConstructorProperties

Open agentgt opened this issue 11 years ago • 2 comments

The object definition determination was not finished for @ConstructorProperties.

agentgt avatar Mar 10 '13 19:03 agentgt

"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.

ronanM avatar Jun 09 '13 16:06 ronanM

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).

agentgt avatar Jun 10 '13 13:06 agentgt