Proper way to scan all classes inside application/war files
Sundara Mohan M
m.sundar85 at gmail.com
Fri Apr 19 00:33:41 UTC 2019
Hi,
I was scanning all classes (to find all annotated class) using the
URLClassLoader.getUrls() methods to find all URL and find it with JDK8.
Since JDK9 onwards all App/System Class loaders are not deriving from
URLClassLoader it doesn't work anymore. (solution of making ucp variable
inside BuiltinClassLoader accesible and reading URLs works).
What is the proper way to scan all(AppClassLoader + any other class loader)
classes?
Any pointers on this will be helpful.
Thanks
Sundar
More information about the jigsaw-dev
mailing list