equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, 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. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8044738 |
26 * @bug 8044738 |
27 * @library /testlibrary |
27 * @library /test/lib |
28 * @summary Check attribute_length of EnclosingMethod attribute |
28 * @summary Check attribute_length of EnclosingMethod attribute |
29 * @modules java.base/jdk.internal.misc |
29 * @modules java.base/jdk.internal.misc |
30 * java.management |
30 * java.management |
31 * @run main EnclMethodAttr |
31 * @run main EnclMethodAttr |
32 */ |
32 */ |
33 |
33 |
34 import java.io.File; |
34 import java.io.File; |
35 import jdk.test.lib.*; |
35 import jdk.test.lib.process.ProcessTools; |
|
36 import jdk.test.lib.process.OutputAnalyzer; |
36 |
37 |
37 public class EnclMethodAttr { |
38 public class EnclMethodAttr { |
38 |
39 |
39 static final String testsrc = System.getProperty("test.src"); |
40 static final String testsrc = System.getProperty("test.src"); |
40 |
41 |