Proper way to scan all classes inside application/war files
Remi Forax
forax at univ-mlv.fr
Thu Apr 18 22:54:24 UTC 2019
Hi Sundara,
wrong mailing list :)
It's an issue for the "jigsaw-dev" mailing list.
regards,
Rémi
----- Mail original -----
> De: "Sundara Mohan M" <m.sundar85 at gmail.com>
> À: "hotspot-runtime-dev" <hotspot-runtime-dev at openjdk.java.net>
> Envoyé: Vendredi 19 Avril 2019 00:20:53
> Objet: Proper way to scan all classes inside application/war files
> 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 hotspot-runtime-dev
mailing list