Browse Source

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
tags/rel_3_17_1_ga
chiba 19 years ago
parent
commit
c4db11b46b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/main/javassist/bytecode/FieldInfo.java

+ 2
- 2
src/main/javassist/bytecode/FieldInfo.java View File

@@ -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;

Loading…
Cancel
Save