< prev index next >
test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java
Print this page
rev 51958 : 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn
*** 29,39 ****
* 2) app loader will load the class from the jimage by default;
* app loader will load the class from the bootclasspath if the
* "--limit-modules java.base" option is specified
* @requires vm.cds & !vm.graal.enabled
* @library /test/lib /test/hotspot/jtreg/runtime/appcds
! * @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @compile ../../test-classes/EmptyClassHelper.java
* @compile ../../test-classes/com/sun/tools/javac/Main.jasm
--- 29,39 ----
* 2) app loader will load the class from the jimage by default;
* app loader will load the class from the bootclasspath if the
* "--limit-modules java.base" option is specified
* @requires vm.cds & !vm.graal.enabled
* @library /test/lib /test/hotspot/jtreg/runtime/appcds
! * @modules java.base/jdk.internal.access
* java.management
* jdk.jartool/sun.tools.jar
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @compile ../../test-classes/EmptyClassHelper.java
* @compile ../../test-classes/com/sun/tools/javac/Main.jasm
*** 64,74 ****
String bootclasspath = "-Xbootclasspath/a:" + appJar;
String classPath = "-Djava.class.path=" + appJar + File.pathSeparator + helperJar;
List<String> argsList = new ArrayList<String>();
argsList.add(classPath);
argsList.add(bootclasspath);
! argsList.add("--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED");
argsList.add("EmptyClassHelper");
// case 1: load class in bootclasspath using app loader
argsList.add("useAppLoader");
String[] opts = new String[argsList.size()];
--- 64,74 ----
String bootclasspath = "-Xbootclasspath/a:" + appJar;
String classPath = "-Djava.class.path=" + appJar + File.pathSeparator + helperJar;
List<String> argsList = new ArrayList<String>();
argsList.add(classPath);
argsList.add(bootclasspath);
! argsList.add("--add-exports=java.base/jdk.internal.access=ALL-UNNAMED");
argsList.add("EmptyClassHelper");
// case 1: load class in bootclasspath using app loader
argsList.add("useAppLoader");
String[] opts = new String[argsList.size()];
< prev index next >