Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.6-rc-1
-
Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
-
Component/s: Compiler
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
I propose to add a setter for field MethodNode.name that allow AST transformations to change a method name, which can be useful at times. My current use case is a DSL for which I want to allow method names composed of arbitrary characters (whitespace, question mark, etc.). For this to work, method names will occasionally have to be encoded to avoid a VerifyError later on.
the alternative is to remove the method from the class, create a new MethodNode and add that new Method node to the class.