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 * @summary Tests the format checking of class list format.
28 *
29 * (NOTE: AppCDS does not support uncompressed oops)
30 * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
31 * @requires (sun.arch.data.model == "64")
32 * @requires ((os.family == "linux") & (os.arch=="amd64")) | (os.family == "solaris")
33 * @library /test/lib /test/hotspot/jtreg/runtime/appcds
34 * @modules java.base/jdk.internal.misc
35 * java.management
36 * jdk.jartool/sun.tools.jar
37 * @compile test-classes/Hello.java test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
38 * test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
39 * @run main ClassListFormatA
40 */
41
42 public class ClassListFormatA extends ClassListFormatBase {
43 static {
44 // Uncomment the following line to run only one of the test cases
45 // ClassListFormatBase.RUN_ONLY_TEST = "TESTCASE A1";
46 }
47
48 public static void main(String[] args) throws Throwable {
49 String appJar = JarBuilder.getOrCreateHelloJar();
50 String customJarPath = JarBuilder.build("ClassListFormatA", "CustomLoadee",
51 "CustomLoadee2", "CustomInterface2_ia", "CustomInterface2_ib");
52 //----------------------------------------------------------------------
|
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 * @summary Tests the format checking of class list format.
28 *
29 * (NOTE: AppCDS does not support uncompressed oops)
30 * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
31 * @requires (sun.arch.data.model == "64")
32 * @requires (os.family == "linux") | (os.family == "solaris") | (os.family == "aix")
33 * @library /test/lib /test/hotspot/jtreg/runtime/appcds
34 * @modules java.base/jdk.internal.misc
35 * java.management
36 * jdk.jartool/sun.tools.jar
37 * @compile test-classes/Hello.java test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
38 * test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
39 * @run main ClassListFormatA
40 */
41
42 public class ClassListFormatA extends ClassListFormatBase {
43 static {
44 // Uncomment the following line to run only one of the test cases
45 // ClassListFormatBase.RUN_ONLY_TEST = "TESTCASE A1";
46 }
47
48 public static void main(String[] args) throws Throwable {
49 String appJar = JarBuilder.getOrCreateHelloJar();
50 String customJarPath = JarBuilder.build("ClassListFormatA", "CustomLoadee",
51 "CustomLoadee2", "CustomInterface2_ia", "CustomInterface2_ib");
52 //----------------------------------------------------------------------
|