RFR: 8256063: Module::getPackages on an unnamed module may return packages that are in a named module

Chris Hegarty chegar at openjdk.java.net
Thu Nov 12 09:02:59 UTC 2020


On Wed, 11 Nov 2020 23:02:49 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> If `Module::getPackages` is invoked on the unnamed module of a class loader
> then the set of packages returned will include the packages of any named modules
> that are defined to that class loader.  This is a spec and implementation bug.
> 
> `Module::getPackages` is changed to return the packages that are defined in
> the unnamed module. 
> 
> CSR: https://bugs.openjdk.java.net/browse/JDK-8256242

Marked as reviewed by chegar (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/1178


More information about the core-libs-dev mailing list