From c4db11b46b7011f0c6279d552326428a8ab86b76 Mon Sep 17 00:00:00 2001 From: chiba Date: Sat, 11 Jun 2005 15:46:49 +0000 Subject: [PATCH] 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 --- src/main/javassist/bytecode/FieldInfo.java | 4 ++-- 1 file 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; -- 2.39.5