test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java
equal
deleted
inserted
replaced
29 * 2) app loader will load the class from the jimage by default; |
29 * 2) app loader will load the class from the jimage by default; |
30 * app loader will load the class from the bootclasspath if the |
30 * app loader will load the class from the bootclasspath if the |
31 * "--limit-modules java.base" option is specified |
31 * "--limit-modules java.base" option is specified |
32 * @requires vm.cds & !vm.graal.enabled |
32 * @requires vm.cds & !vm.graal.enabled |
33 * @library /test/lib /test/hotspot/jtreg/runtime/appcds |
33 * @library /test/lib /test/hotspot/jtreg/runtime/appcds |
34 * @modules java.base/jdk.internal.misc |
34 * @modules java.base/jdk.internal.access |
35 * java.management |
35 * java.management |
36 * jdk.jartool/sun.tools.jar |
36 * jdk.jartool/sun.tools.jar |
37 * jdk.internal.jvmstat/sun.jvmstat.monitor |
37 * jdk.internal.jvmstat/sun.jvmstat.monitor |
38 * @compile ../../test-classes/EmptyClassHelper.java |
38 * @compile ../../test-classes/EmptyClassHelper.java |
39 * @compile ../../test-classes/com/sun/tools/javac/Main.jasm |
39 * @compile ../../test-classes/com/sun/tools/javac/Main.jasm |
64 String bootclasspath = "-Xbootclasspath/a:" + appJar; |
64 String bootclasspath = "-Xbootclasspath/a:" + appJar; |
65 String classPath = "-Djava.class.path=" + appJar + File.pathSeparator + helperJar; |
65 String classPath = "-Djava.class.path=" + appJar + File.pathSeparator + helperJar; |
66 List<String> argsList = new ArrayList<String>(); |
66 List<String> argsList = new ArrayList<String>(); |
67 argsList.add(classPath); |
67 argsList.add(classPath); |
68 argsList.add(bootclasspath); |
68 argsList.add(bootclasspath); |
69 argsList.add("--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED"); |
69 argsList.add("--add-exports=java.base/jdk.internal.access=ALL-UNNAMED"); |
70 argsList.add("EmptyClassHelper"); |
70 argsList.add("EmptyClassHelper"); |
71 |
71 |
72 // case 1: load class in bootclasspath using app loader |
72 // case 1: load class in bootclasspath using app loader |
73 argsList.add("useAppLoader"); |
73 argsList.add("useAppLoader"); |
74 String[] opts = new String[argsList.size()]; |
74 String[] opts = new String[argsList.size()]; |