RFR: 8317611: Add a tool like jdeprscan to find usage of restricted methods [v5]
Alan Bateman
alanb at openjdk.org
Thu Jun 20 17:28:14 UTC 2024
On Wed, 19 Jun 2024 21:13:33 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> What do you suggest? Just a note in the error message that exploded modules/class paths are not supported?
>
> Something like that yes
An altermative is to use ResolvedModule::reference to get a ModuleReference, then use its open method to open the contents of the module to get a ModuleReader. That will give you a stream over the names of all resources in the module. It will work for all exploded and packaged modules.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19774#discussion_r1647911987
More information about the build-dev
mailing list