[jboss-cvs] javassist/src/main/javassist/bytecode ...
Shigeru Chiba
chiba at is.titech.ac.jp
Wed Nov 14 03:39:42 EST 2007
User: chiba
Date: 07/11/14 03:39:42
Modified: src/main/javassist/bytecode CodeAttribute.java
Log:
fixed a bug of JBAOP-481. Javassist could not properly copy a method body if LDC becomes LDC_W after copying.
Revision Changes Path
1.14 +2 -0 javassist/src/main/javassist/bytecode/CodeAttribute.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CodeAttribute.java
===================================================================
RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/CodeAttribute.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- CodeAttribute.java 4 Jun 2007 03:11:09 -0000 1.13
+++ CodeAttribute.java 14 Nov 2007 08:39:42 -0000 1.14
@@ -356,6 +356,8 @@
if (index < 0x100)
newcode[i + 1] = (byte)index;
else {
+ newcode[i] = NOP;
+ newcode[i + 1] = NOP;
LdcEntry ldc = new LdcEntry();
ldc.where = i;
ldc.index = index;
More information about the jboss-cvs-commits
mailing list