Commit f620ada7 authored by Eric Bruneton's avatar Eric Bruneton

Add a test case for the StackMap attribute from J2ME CLDC.

Warning: this class was not produced with an actual J2ME CLDC 1.1 toolchain, but with an ASM transform.
parent 0342b08b
Pipeline #469 passed with stage
in 10 minutes and 29 seconds
......@@ -109,6 +109,7 @@ public abstract class AsmTest {
JDK3_ATTRIBUTE("jdk3.Attribute"),
JDK3_INNER_CLASS("jdk3.AllStructures$InnerClass"),
JDK3_LARGE_METHOD("jdk3.LargeMethod"),
JDK3_STACK_MAP_ATTRIBUTE("jdk3.StackMapAttribute"),
JDK5_ALL_INSTRUCTIONS("jdk5.AllInstructions"),
JDK5_ALL_STRUCTURES("jdk5.AllStructures"),
JDK5_ANNOTATION("jdk5.AllStructures$InvisibleAnnotation"),
......
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holders nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
package jdk3;
/**
* Class which, compiled with the J2ME CLDC 1.1 toolchain, produces a StackMap
* attribute that was introduced for pre-verification.
*/
public class StackMapAttribute {
public int toInt(boolean b) {
return b ? 1 : 0;
}
}
......@@ -80,6 +80,7 @@ public class AsmTestTest extends AsmTest {
case JDK3_ANONYMOUS_INNER_CLASS:
case JDK3_INNER_CLASS:
case JDK3_LARGE_METHOD:
case JDK3_STACK_MAP_ATTRIBUTE:
case JDK5_ALL_INSTRUCTIONS:
case JDK5_ALL_STRUCTURES:
case JDK5_ENUM:
......@@ -123,6 +124,7 @@ public class AsmTestTest extends AsmTest {
case JDK3_ANONYMOUS_INNER_CLASS:
case JDK3_INNER_CLASS:
case JDK3_LARGE_METHOD:
case JDK3_STACK_MAP_ATTRIBUTE:
case JDK5_ALL_INSTRUCTIONS:
case JDK5_ALL_STRUCTURES:
case JDK5_ENUM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment