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 * @test
26 * @bug 7005371
27 * @summary Multicatch: assertion error while generating LocalVariableTypeTable attribute
28 * @modules jdk.compiler/com.sun.tools.classfile
29 * @compile -g SubTest.java
30 * @run main T7005371
31 */
32
33 import com.sun.tools.classfile.Attribute;
34 import com.sun.tools.classfile.ClassFile;
35 import com.sun.tools.classfile.Code_attribute;
36 import com.sun.tools.classfile.LocalVariableTypeTable_attribute;
37 import com.sun.tools.classfile.Method;
38
39 import java.io.*;
40
41 public class T7005371 {
42
43 static final String SUBTEST_NAME = SubTest.class.getName() + ".class";
44 static final String TEST_METHOD_NAME = "test";
45 static final int LVT_LENGTH = 1;
46 static final String LVT_SIG_TYPE = "Ljava/util/List<Ljava/lang/String;>;";
47
48
|
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 * @test
26 * @bug 7005371
27 * @summary Multicatch: assertion error while generating LocalVariableTypeTable attribute
28 * @modules jdk.jdeps/com.sun.tools.classfile
29 * @compile -g SubTest.java
30 * @run main T7005371
31 */
32
33 import com.sun.tools.classfile.Attribute;
34 import com.sun.tools.classfile.ClassFile;
35 import com.sun.tools.classfile.Code_attribute;
36 import com.sun.tools.classfile.LocalVariableTypeTable_attribute;
37 import com.sun.tools.classfile.Method;
38
39 import java.io.*;
40
41 public class T7005371 {
42
43 static final String SUBTEST_NAME = SubTest.class.getName() + ".class";
44 static final String TEST_METHOD_NAME = "test";
45 static final int LVT_LENGTH = 1;
46 static final String LVT_SIG_TYPE = "Ljava/util/List<Ljava/lang/String;>;";
47
48
|