SLING-11917 Evaluate constructor parameter names via reflection#45
SLING-11917 Evaluate constructor parameter names via reflection#45
Conversation
This is available if compiled accordingly (with javac flag -parameters, https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#option-parameters)
dcb5830 to
eba7e54
Compare
|
can you add a test case evaluating the new behavior? i've never used the |
|
The API https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Parameter.html is available since Java 8 (no matter if |
|
Wouldn't that be as simple as adding another compile step in the project, for a separate source folder, that will have a sling model available to test? |
|
@henrykuijpers Yes, but I tried to do #46 first, which turned out to be more complex. |
stefanseifert
left a comment
There was a problem hiding this comment.
this is especially useful in combination with #51 for record classes
i'm fine with applying it also without the IT to not block this here any further - we can add the ITs later.
|



This is available if compiled accordingly (with javac option
-parameters, https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#option-parameters), supported since javac 8+