diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-11-14 08:39:42 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-11-14 08:39:42 +0000 |
commit | 5b38e95af69252ca03b64fd7fa08f92840180b77 (patch) | |
tree | 4cd11e1ee71db7037efb0e8ae2f0b4b16afa709c | |
parent | 0f2a4bf5d297b201d7058b4833b42de76d2e28b3 (diff) | |
download | javassist-5b38e95af69252ca03b64fd7fa08f92840180b77.tar.gz javassist-5b38e95af69252ca03b64fd7fa08f92840180b77.zip |
fixed a bug of JBAOP-481. Javassist could not properly copy a method body if LDC becomes LDC_W after copying.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@415 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/bytecode/CodeAttribute.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/CodeAttribute.java b/src/main/javassist/bytecode/CodeAttribute.java index 5a423efc..35ab7ddd 100644 --- a/src/main/javassist/bytecode/CodeAttribute.java +++ b/src/main/javassist/bytecode/CodeAttribute.java @@ -356,6 +356,8 @@ public class CodeAttribute extends AttributeInfo implements Opcode { 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; |