Textifier#visitMethod patch

Roman Shevchenko <[email protected]> Thu, 26 Jan 2017 19:34:03 +0300
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi,

following is a tiny patch for Textifier which fixes prevents it from adding "transient" modifiers to vararg methods.

Index: src/org/objectweb/asm/util/Textifier.java
===================================================================
--- src/org/objectweb/asm/util/Textifier.java   (revision 1842)
+++ src/org/objectweb/asm/util/Textifier.java   (revision )
@@ -431,7 +431,7 @@
         }
 
         buf.append(tab);
-        appendAccess(access & ~Opcodes.ACC_VOLATILE);
+        appendAccess(access & ~(Opcodes.ACC_VOLATILE|Opcodes.ACC_TRANSIENT));
         if ((access & Opcodes.ACC_NATIVE) != 0) {
             buf.append("native ");
         }


-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws