# HG changeset patch # User iklam # Date 1508274396 25200 # Node ID ad6a219f8b95a4ae9f3f59d428bd9af623901245 # Parent 87141990dde515c445fe200cad90efbb43c9f420 8176827: Test can't find libXext.so Summary: Removed references to classes that belong to desktop modules. Reviewed-by: ccheung, dholmes diff -r 87141990dde5 -r ad6a219f8b95 test/hotspot/jtreg/runtime/getSysPackage/GetSysPkgTest.java --- a/test/hotspot/jtreg/runtime/getSysPackage/GetSysPkgTest.java Tue Oct 17 18:54:03 2017 +0200 +++ b/test/hotspot/jtreg/runtime/getSysPackage/GetSysPkgTest.java Tue Oct 17 14:06:36 2017 -0700 @@ -25,7 +25,7 @@ * @test * @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.loader - * java.desktop + * java.logging * @library /test/lib * @run main/othervm GetSysPkgTest */ @@ -134,10 +134,11 @@ 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"); + clss = Class.forName("java.util.logging.Level"); + if (clss == null) - throw new RuntimeException("Could not find class java.awt.Button"); - getPkg("java/awt", "jrt:/java.desktop"); + 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");