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

Mandy Chung mchung at openjdk.java.net
Fri Nov 13 00:34:58 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

This pull request has now been integrated.

Changeset: dff26a48
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/dff26a48
Stats:     123 lines in 4 files changed: 118 ins; 1 del; 4 mod

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

Reviewed-by: alanb, chegar

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

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


More information about the core-libs-dev mailing list