git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@180 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -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; |