Textifier#visitMethod patch

Roman Shevchenko <[email protected]> Mon, 02 Jan 2017 14:23:16 +0100
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi,

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

-- 
Roman Shevchenko
JetBrains
https://www.jetbrains.com
The Drive to Develop


-- 
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
asm_textifier_transient_method_fix.patch (text/x-patch, 528 B)
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 ");
         }