Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.x, 2.5.x
-
None
Description
When the below code is restored using GroovyConsole (AstNodeToScriptVisitor), the restored code has wrong order of extends/implements key words that is unsupported by Groovy and Java:
Original code:
class Foo extends Object implements Runnable { void run() {} }
Actual Restored by AstNodeToScriptVisitor:
public class Foo implements java.lang.Runnable, groovy.lang.GroovyObject extends java.lang.Object { ... }
Expected Restored by AstNodeToScriptVisitor:
public class Foo extends java.lang.Object implements java.lang.Runnable, groovy.lang.GroovyObject { ... }