16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /*
26 * @test
27 * @summary Test combinations of jigsaw options that affect the use of AppCDS
28 *
29 * @requires vm.cds & !vm.graal.enabled
30 * @library /test/lib ..
31 * @modules java.base/jdk.internal.misc
32 * java.management
33 * jdk.jartool/sun.tools.jar
34 * jdk.internal.jvmstat/sun.jvmstat.monitor
35 * @compile ../test-classes/Hello.java ../test-classes/HelloMore.java
36 * @run main JigsawOptionsCombo
37 */
38 import jdk.test.lib.compiler.InMemoryJavaCompiler;
39 import jdk.test.lib.process.OutputAnalyzer;
40 import java.util.ArrayList;
41
42
43 // Remaining WORK: TODO:
44 // 1. test with -m initial-module; waiting for changes from Chris will provide
45 // utils to build modules
46 // 2. Loading classes from Jmod files - waiting on utils
47 // 3. Loading classes from exploded module dir"
48
49 public class JigsawOptionsCombo {
50
51 public static void main(String[] args) throws Exception {
52 String source = "package javax.naming.spi; " +
53 "public class NamingManager { " +
54 " static { " +
55 " System.out.println(\"I pass!\"); " +
56 " } " +
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /*
26 * @test
27 * @summary Test combinations of jigsaw options that affect the use of AppCDS
28 *
29 * @requires vm.cds & !vm.graal.enabled
30 * @library /test/lib ..
31 * @modules java.base/jdk.internal.misc
32 * java.management
33 * jdk.jartool/sun.tools.jar
34 * jdk.internal.jvmstat/sun.jvmstat.monitor
35 * @compile ../test-classes/Hello.java ../test-classes/HelloMore.java
36 * @run driver JigsawOptionsCombo
37 */
38 import jdk.test.lib.compiler.InMemoryJavaCompiler;
39 import jdk.test.lib.process.OutputAnalyzer;
40 import java.util.ArrayList;
41
42
43 // Remaining WORK: TODO:
44 // 1. test with -m initial-module; waiting for changes from Chris will provide
45 // utils to build modules
46 // 2. Loading classes from Jmod files - waiting on utils
47 // 3. Loading classes from exploded module dir"
48
49 public class JigsawOptionsCombo {
50
51 public static void main(String[] args) throws Exception {
52 String source = "package javax.naming.spi; " +
53 "public class NamingManager { " +
54 " static { " +
55 " System.out.println(\"I pass!\"); " +
56 " } " +
|