aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/FieldInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/FieldInfo.java')
-rw-r--r--src/main/javassist/bytecode/FieldInfo.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/FieldInfo.java b/src/main/javassist/bytecode/FieldInfo.java
index f0a13faf..5d96df84 100644
--- a/src/main/javassist/bytecode/FieldInfo.java
+++ b/src/main/javassist/bytecode/FieldInfo.java
@@ -100,6 +100,13 @@ public final class FieldInfo {
newAttributes.add(visibleAnnotations);
}
+ AttributeInfo signature
+ = getAttribute(SignatureAttribute.tag);
+ if (signature != null) {
+ signature = signature.copy(cp, null);
+ newAttributes.add(signature);
+ }
+
int index = getConstantValue();
if (index != 0) {
index = constPool.copy(index, cp, null);