aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-06-11 15:46:49 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-06-11 15:46:49 +0000
commitc4db11b46b7011f0c6279d552326428a8ab86b76 (patch)
treede8d0152a7c22062a66c675200fb6459760f6a4a /src
parente7f278c40b80b493ec6afc75e563e6a70ebb01da (diff)
downloadjavassist-c4db11b46b7011f0c6279d552326428a8ab86b76.tar.gz
javassist-c4db11b46b7011f0c6279d552326428a8ab86b76.zip
fixed a bug I enbugged in the previous version
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@180 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src')
-rw-r--r--src/main/javassist/bytecode/FieldInfo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/bytecode/FieldInfo.java b/src/main/javassist/bytecode/FieldInfo.java
index 744a57e9..73698a62 100644
--- a/src/main/javassist/bytecode/FieldInfo.java
+++ b/src/main/javassist/bytecode/FieldInfo.java
@@ -100,13 +100,13 @@ public final class FieldInfo {
newAttributes.add(visibleAnnotations);
}
- attribute = newAttributes;
int index = getConstantValue();
if (index != 0) {
index = constPool.copy(index, cp, null);
- attribute.add(new ConstantAttribute(cp, index));
+ newAttributes.add(new ConstantAttribute(cp, index));
}
+ attribute = newAttributes;
name = cp.addUtf8Info(getName());
descriptor = cp.addUtf8Info(getDescriptor());
constPool = cp;