< prev index next >

test/jdk/java/lang/ClassLoader/LibraryPathProperty.java

Print this page

        

*** 26,36 **** * @bug 8067951 8236075 * @summary Unit test for internal ClassLoaderHelper#parsePath(). * Quoted entries should get unquoted on Windows. * Empty entries should be replaced with dot. * @library /test/lib ! * @modules java.base/java.lang:open * @build jdk.test.lib.Platform * @run main LibraryPathProperty */ import java.lang.reflect.Method; --- 26,36 ---- * @bug 8067951 8236075 * @summary Unit test for internal ClassLoaderHelper#parsePath(). * Quoted entries should get unquoted on Windows. * Empty entries should be replaced with dot. * @library /test/lib ! * @modules java.base/jdk.internal.loader:open * @build jdk.test.lib.Platform * @run main LibraryPathProperty */ import java.lang.reflect.Method;
*** 42,52 **** static final String SP = File.pathSeparator; static Method method; public static void main(String[] args) throws Throwable { ! Class<?> klass = Class.forName("java.lang.ClassLoaderHelper"); method = klass.getDeclaredMethod("parsePath", String.class); method.setAccessible(true); test("", "."); test(SP, ".", "."); --- 42,52 ---- static final String SP = File.pathSeparator; static Method method; public static void main(String[] args) throws Throwable { ! Class<?> klass = Class.forName("jdk.internal.loader.ClassLoaderHelper"); method = klass.getDeclaredMethod("parsePath", String.class); method.setAccessible(true); test("", "."); test(SP, ".", ".");
< prev index next >