diff options
author | adrian <adrian@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-03-15 17:11:30 +0000 |
---|---|---|
committer | adrian <adrian@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-03-15 17:11:30 +0000 |
commit | 42d7a2b9d57bb1aff44d1a68534727d11a992dda (patch) | |
tree | 9b32018dcf3e6279971f139e3e0b45e2f42ed66a /src | |
parent | 003dce367a611ae6ddc516519e56f39281b3c953 (diff) | |
download | javassist-42d7a2b9d57bb1aff44d1a68534727d11a992dda.tar.gz javassist-42d7a2b9d57bb1aff44d1a68534727d11a992dda.zip |
We also need to keep the annotation default attribute after a prune.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@258 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src')
-rw-r--r-- | src/main/javassist/bytecode/MethodInfo.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/MethodInfo.java b/src/main/javassist/bytecode/MethodInfo.java index 93079920..10c77be0 100644 --- a/src/main/javassist/bytecode/MethodInfo.java +++ b/src/main/javassist/bytecode/MethodInfo.java @@ -140,6 +140,11 @@ public final class MethodInfo { newAttributes.add(visibleAnnotations); } + AnnotationDefaultAttribute defaultAttribute + = (AnnotationDefaultAttribute) getAttribute(AnnotationDefaultAttribute.tag); + if (defaultAttribute != null) + newAttributes.add(defaultAttribute); + ExceptionsAttribute ea = getExceptionsAttribute(); if (ea != null) newAttributes.add(ea); |