[
https://issues.apache.org/jira/browse/GROOVY-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King resolved GROOVY-8931.
-------------------------------
Resolution: Fixed
Assignee: Paul King
Fix Version/s: 2.5.5
3.0.0-alpha-4
Fixed. Thanks for spotting that.
> AstNodeToScriptVisitor - wrong "extends/implements" order
> ---------------------------------------------------------
>
> Key: GROOVY-8931
> URL: https://issues.apache.org/jira/browse/GROOVY-8931
> Project: Groovy
> Issue Type: Bug
> Components: Groovy Console
> Affects Versions: 2.4.x, 2.5.x
> Reporter: Anton Pryamostanov
> Assignee: Paul King
> Priority: Major
> Fix For: 3.0.0-alpha-4, 2.5.5
>
>
> 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:
> {code}
> class Foo extends Object implements Runnable {
> void run() {}
> }
> {code}
> Actual Restored by AstNodeToScriptVisitor:
> {code}
> public class Foo implements java.lang.Runnable, groovy.lang.GroovyObject
> extends java.lang.Object {
> ...
> }
> {code}
> *Expected* Restored by AstNodeToScriptVisitor:
> {code}
> public class Foo extends java.lang.Object implements java.lang.Runnable,
> groovy.lang.GroovyObject {
> ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)