[jboss-cvs] javassist/src/main/javassist/expr ...
Shigeru Chiba
chiba at is.titech.ac.jp
Sat Jun 2 10:12:36 EDT 2007
User: chiba
Date: 07/06/02 10:12:36
Modified: src/main/javassist/expr ExprEditor.java
Log:
fixed bugs related to stack map tables.
Revision Changes Path
1.12 +10 -1 javassist/src/main/javassist/expr/ExprEditor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ExprEditor.java
===================================================================
RCS file: /cvsroot/jboss/javassist/src/main/javassist/expr/ExprEditor.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- ExprEditor.java 8 Dec 2006 07:00:36 -0000 1.11
+++ ExprEditor.java 2 Jun 2007 14:12:36 -0000 1.12
@@ -101,12 +101,21 @@
}
}
- // codeAttr might be modified by other partys
+ // codeAttr might be modified by other partiess
// so I check the current value of max-locals.
if (codeAttr.getMaxLocals() < context.maxLocals)
codeAttr.setMaxLocals(context.maxLocals);
codeAttr.setMaxStack(codeAttr.getMaxStack() + context.maxStack);
+ try {
+ if (edited)
+ minfo.rebuildStackMapIf6(clazz.getClassPool(),
+ clazz.getClassFile2());
+ }
+ catch (BadBytecode b) {
+ throw new CannotCompileException(b.getMessage(), b);
+ }
+
return edited;
}
More information about the jboss-cvs-commits
mailing list