-
Notifications
You must be signed in to change notification settings - Fork 30
SLING-11917 Evaluate constructor parameter names via reflection #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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+