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

Alan Bateman alanb at openjdk.java.net
Thu Nov 12 07:35:55 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 alanb (Reviewer).

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

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


More information about the core-libs-dev mailing list