< prev index next >

test/hotspot/jtreg/runtime/getSysPackage/GetSysPkgTest.java

Print this page

*** 23,33 **** /* * @test * @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.loader ! * java.desktop * @library /test/lib * @run main/othervm GetSysPkgTest */ import java.io.File; --- 23,33 ---- /* * @test * @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.loader ! * java.logging * @library /test/lib * @run main/othervm GetSysPkgTest */ import java.io.File;
*** 132,145 **** if (clss == null) throw new RuntimeException("Could not find class GetSysPkg_package.GetSysClass"); getPkg("GetSysPkg_package", null); // Access a class with a package in a boot loader module other than java.base ! clss = Class.forName("java.awt.Button"); if (clss == null) ! throw new RuntimeException("Could not find class java.awt.Button"); ! getPkg("java/awt", "jrt:/java.desktop"); // Test getting the package location from a class found via -Xbootclasspath/a clss = Class.forName("BootLdr_package.BootLdrPkg"); if (clss == null) throw new RuntimeException("Could not find class BootLdr_package.BootLdrPkg"); --- 132,146 ---- if (clss == null) throw new RuntimeException("Could not find class GetSysPkg_package.GetSysClass"); getPkg("GetSysPkg_package", null); // Access a class with a package in a boot loader module other than java.base ! clss = Class.forName("java.util.logging.Level"); ! if (clss == null) ! throw new RuntimeException("Could not find class java.util.logging.Level"); ! getPkg("java/util/logging", "jrt:/java.logging"); // Test getting the package location from a class found via -Xbootclasspath/a clss = Class.forName("BootLdr_package.BootLdrPkg"); if (clss == null) throw new RuntimeException("Could not find class BootLdr_package.BootLdrPkg");
< prev index next >