-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Make @API annotation available via Java reflection #375
Conversation
This would make #144 much easier. |
Hmm, I'm not sure about this one. I've never used |
@marcphilipp - I missed that and was thinking about runtime reflection via java.lang.reflect. |
@marcphilipp > How hard would it be to access the annotations using it? That would be as easy as:
But as far as I know there is no way to define annotation parameter values as filters (to fetch only Internal or only Experimental classes). So, Java Reflection might still be required. And, as mentioned above, Java Reflection doesn't see annotations with CLASS Retention Policy. |
@junit-team/junit-lambda I agree that it would be much easier to work with |
I do not have any objection to this PR. However, if we're going to do this, I think we should also remove the |
That would be #317. |
Shall we make it |
This has been merged into |
FYI: this issue is related to #436. |
API
annotation could be retrieved from byte code (e.g. by usingorg.reflections
), however it would be much more convenient (for #144) to retrieve annotations via Java Reflection.I hereby agree to the terms of the JUnit Contributor License Agreement.