test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/ClassPathTests.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File open Sdiff test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests

test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/ClassPathTests.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  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  * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
  28  * @library ../..
  29  * @library /test/lib
  30  * @modules java.base/jdk.internal.misc
  31  * @modules jdk.jartool/sun.tools.jar
  32  * @compile src/jdk/test/Main.java
  33  * @compile src/com/sun/tools/javac/Main.jasm
  34  * @compile src/com/sun/tools/javac/Main2.jasm
  35  * @compile src/javax/activation/UnsupportedDataTypeException2.jasm
  36  * @run main ClassPathTests
  37  * @summary AppCDS tests for testing classpath/package conflicts
  38  */
  39 
  40 /*
  41  * These tests will verify that AppCDS will correctly handle archived classes
  42  * on the classpath that are in a package that is also exported by the jimage.
  43  * These classes should fail to load unless --limit-modules is used to hide the
  44  * package exported by the jimage. There are 8 variants of this test:
  45  *   - With a jimage app package and with a jimage ext package
  46  *   - With --limit-modules and without --limit-modules
  47  *   - With AppCDS and without AppCDS (to verify behaviour is the same for both).




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  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  * @requires ((vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)) & !vm.graal.enabled
  28  * @library ../..
  29  * @library /test/lib
  30  * @modules java.base/jdk.internal.misc
  31  * @modules jdk.jartool/sun.tools.jar
  32  * @compile src/jdk/test/Main.java
  33  * @compile src/com/sun/tools/javac/Main.jasm
  34  * @compile src/com/sun/tools/javac/Main2.jasm
  35  * @compile src/javax/activation/UnsupportedDataTypeException2.jasm
  36  * @run main ClassPathTests
  37  * @summary AppCDS tests for testing classpath/package conflicts
  38  */
  39 
  40 /*
  41  * These tests will verify that AppCDS will correctly handle archived classes
  42  * on the classpath that are in a package that is also exported by the jimage.
  43  * These classes should fail to load unless --limit-modules is used to hide the
  44  * package exported by the jimage. There are 8 variants of this test:
  45  *   - With a jimage app package and with a jimage ext package
  46  *   - With --limit-modules and without --limit-modules
  47  *   - With AppCDS and without AppCDS (to verify behaviour is the same for both).


test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/ClassPathTests.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File