test/jdk/tools/jlink/plugins/StringSharingPluginTest.java
changeset 51994 7577686cc9bd
parent 47216 71c04702a3d5
equal deleted inserted replaced
51993:c0d05cf1d19d 51994:7577686cc9bd
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, 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.
    65 public class StringSharingPluginTest {
    65 public class StringSharingPluginTest {
    66 
    66 
    67     private static int strID = 1;
    67     private static int strID = 1;
    68 
    68 
    69     public static void main(String[] args) throws Exception {
    69     public static void main(String[] args) throws Exception {
    70         // JPRT not yet ready for jmods
       
    71         Helper helper = Helper.newHelper();
    70         Helper helper = Helper.newHelper();
    72         if (helper == null) {
    71         if (helper == null) {
       
    72             // Skip test if the jmods directory is missing (e.g. exploded image)
    73             System.err.println("Test not run, NO jmods directory");
    73             System.err.println("Test not run, NO jmods directory");
    74             return;
    74             return;
    75         }
    75         }
    76 
    76 
    77         List<String> classes = Arrays.asList("toto.Main", "toto.com.foo.bar.X");
    77         List<String> classes = Arrays.asList("toto.Main", "toto.com.foo.bar.X");