test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/AddModules.java
changeset 53636 962ed57b29c9
parent 51990 6003e034cdd8
child 54927 1512d88b24c6
equal deleted inserted replaced
53635:247e5ca412f5 53636:962ed57b29c9
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   105                                         null, appClasses,
   105                                         null, appClasses,
   106                                         "--module-path", moduleDir.toString(),
   106                                         "--module-path", moduleDir.toString(),
   107                                         "--add-modules",
   107                                         "--add-modules",
   108                                         MAIN_MODULE1 + "," + MAIN_MODULE2);
   108                                         MAIN_MODULE1 + "," + MAIN_MODULE2);
   109         TestCommon.checkDump(output);
   109         TestCommon.checkDump(output);
   110         String prefix[] = {"-cp", "\"\"", "-Xlog:class+load=trace"};
   110         String prefix[] = {"-Djava.class.path=", "-Xlog:class+load=trace"};
   111 
   111 
   112         // run the com.greetings module with the archive with the --module-path
   112         // run the com.greetings module with the archive with the --module-path
   113         // the same as the one during dump time.
   113         // the same as the one during dump time.
   114         // The classes should be loaded from the archive.
   114         // The classes should be loaded from the archive.
   115         TestCommon.runWithModules(prefix,
   115         TestCommon.runWithModules(prefix,