Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8256063 Module::getPackages on an unnamed module may return packages that are in a named module
  3. JDK-8256310

Release Note: Module::getPackages Returns the Set of Package Names in This Module

XMLWordPrintable

      `Module::getPackages` returns the set of package names for the packages in this module.

      For unnamed modules, the specification and implementation have been corrected to return the names of the packages defined in the unnamed module. Prior to Java SE 16, `Module::getPackages` returned the set of package names for the packages defined in the module's class loader if the module was an unnamed module and the result included packages of other named modules defined in the module's class loader, if any.

            mchung Mandy Chung
            mchung Mandy Chung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: