reflections
reflections copied to clipboard
Use "reflections" with Java 11 or higher
Hello!
First things first: Thanks for creating such an awesome lib!
I'm trying to use "reflections" with Java 11, but it seems there is no "module-info.java" file. I've tried to adopt the lib for using with Java 11 and made this pull request (https://github.com/ronmamo/reflections/pull/305), but it has failed on Travis CI. Please, can anyone point me the right way of doing this, because this is my very first time when I'm trying to contribute to any project :)
Thanks again! David
thanks @DavidShahbazyan , saw your pr and I'd like to merge it. if you wish to discuss or some guidance, feel free to reach out ronmamo at gmail
Hello @ronmamo! Thanks, I'd be happy if I could have my small commitment in such a cool project. Please, let me know if there is anything that I can/should add/fix in my pr. Thanks again
Hi, I have the problem with Java 17 reflect.getTypesAnnotatedWith(..)
don't give me any result anymore, if I use it with package name. With ClasspathHelper.forClass(..)
it works. Can you please tell me how Reflections work with Java modules and packages?
Thanks
Hi, I have the problem with Java 17
reflect.getTypesAnnotatedWith(..)
don't give me any result anymore, if I use it with package name. WithClasspathHelper.forClass(..)
it works. Can you please tell me how Reflections work with Java modules and packages? Thanks
@zetti12345 Have you found solution?
I have the same problem with modular app and OpenJDK 21.
Workaround:
var reflections = new Reflections(new ConfigurationBuilder()
.setUrls(ClasspathHelper.forClass(Control.class)));
is working fine for me, but searching types by package returns empty results.