]> source.dussan.org Git - javassist.git/commitdiff
fixed JASSIST-177
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 16 Nov 2012 05:04:50 +0000 (05:04 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 16 Nov 2012 05:04:50 +0000 (05:04 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@689 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

Readme.html
src/test/javassist/bytecode/StackMapTest.java

index bdc46af1f90d23592c98cd6af477d8cf62208da6..cf8d8bab0c0c44bc5d1445e47af5343826361c88 100644 (file)
@@ -283,7 +283,7 @@ see javassist.Dump.
 
 <p>-version 3.17.1
 <ul>
-       <li>JIRA JASSIST-177
+       <li>JIRA JASSIST-177, 178
 </ul>
 
 
index 1004b29cbba571bebac8f86f51ce2cf81bcbecdc..a78c6fc442a2338476ee9bace9bb1bc71f9670f6 100644 (file)
@@ -783,7 +783,7 @@ public class StackMapTest extends TestCase {
     public void testJsr() throws Exception {
         CtClass cc = loader.makeClass("javassist.bytecode.StackMapTestJsrTest");
         ClassFile cf = cc.getClassFile();
-        cf.setMajorVersion(ClassFile.JAVA_6);
+        cf.setMajorVersion(ClassFile.JAVA_5);
         ConstPool cp = cf.getConstPool();
         MethodInfo mi = new MethodInfo(cp, "test", "()I");
         mi.setAccessFlags(AccessFlag.PUBLIC);
@@ -806,8 +806,8 @@ public class StackMapTest extends TestCase {
                                  + "}",
                                    cc));
         cc.writeFile();
-        // Object t1 = make(cc.getName());
-        // assertEquals(3, invoke(t1, "test"));
+        Object t1 = make(cc.getName());
+        assertEquals(3, invoke(t1, "test"));
     }
 
     public void tstCtClassType() throws Exception {