diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-09-09 10:32:05 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-09-09 10:32:05 +0000 |
commit | e508ad78ca0df9329dcf4873f4e4614e31e4a1bc (patch) | |
tree | 555f6f9cf646b11c47f9d57aa5f56de9c344cc9e /src/main/javassist/CtNewWrappedMethod.java | |
parent | 8b65a057e9829a84cfd00fe5de98fe94ccc1d2f0 (diff) | |
download | javassist-e508ad78ca0df9329dcf4873f4e4614e31e4a1bc.tar.gz javassist-e508ad78ca0df9329dcf4873f4e4614e31e4a1bc.zip |
The method implicitly appended by CtNewMethod.wrapped() now has a synthetic attribute.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@456 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtNewWrappedMethod.java')
-rw-r--r-- | src/main/javassist/CtNewWrappedMethod.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/javassist/CtNewWrappedMethod.java b/src/main/javassist/CtNewWrappedMethod.java index 45916de9..94cabd60 100644 --- a/src/main/javassist/CtNewWrappedMethod.java +++ b/src/main/javassist/CtNewWrappedMethod.java @@ -149,6 +149,7 @@ class CtNewWrappedMethod { map); int acc = body.getAccessFlags(); body.setAccessFlags(AccessFlag.setPrivate(acc)); + body.addAttribute(new SyntheticAttribute(classfile.getConstPool())); // a stack map is copied. rebuilding it is not needed. classfile.addMethod(body); bodies.put(src, bodyname); |