diff options
author | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-03-08 13:05:47 +0000 |
---|---|---|
committer | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-03-08 13:05:47 +0000 |
commit | 07ede64867da6e2c443556162a35c9f098e769e9 (patch) | |
tree | 024c96dabb0f4449caaca61f86a3dff95c037f20 /src/main/javassist/bytecode/ClassFile.java | |
parent | 4f3e40804c596792d679d1d688b3245d4b33579d (diff) | |
download | javassist-07ede64867da6e2c443556162a35c9f098e769e9.tar.gz javassist-07ede64867da6e2c443556162a35c9f098e769e9.zip |
When pruning preserve the SignatureAttribute
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@356 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/bytecode/ClassFile.java')
-rw-r--r-- | src/main/javassist/bytecode/ClassFile.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index 013b533e..82221d45 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -168,6 +168,13 @@ public final class ClassFile { newAttributes.add(visibleAnnotations); } + AttributeInfo signature + = getAttribute(SignatureAttribute.tag); + if (signature != null) { + signature = signature.copy(cp, null); + newAttributes.add(signature); + } + ArrayList list = methods; int n = list.size(); for (int i = 0; i < n; ++i) { |