< prev index next >

src/java.base/share/classes/jdk/internal/module/SystemModules.java

Print this page
rev 16338 : 8171400: Move checking of duplicate packages in the boot layer to link time
Reviewed-by: alanb

@@ -55,10 +55,18 @@
      * the value will be changed at jlink time.
      */
     public static int PACKAGES_IN_BOOT_LAYER = 1024;
 
     /**
+     * @return {@code false} if there are no split packages in the run-time
+     *         image, {@code true} if there are or if it's not been checked.
+     */
+    public static boolean hasSplitPackages() {
+        return true;
+    }
+
+    /**
      * Returns a non-empty array of ModuleDescriptors in the run-time image.
      *
      * When running an exploded image it returns an empty array.
      */
     public static ModuleDescriptor[] descriptors() {
< prev index next >