You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Anton Pryamostanov (JIRA)" <ji...@apache.org> on 2018/12/18 10:13:00 UTC
[jira] [Updated] (GROOVY-8931) AstNodeToScriptVisitor - wrong
"extends/implements" order
[ https://issues.apache.org/jira/browse/GROOVY-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anton Pryamostanov updated GROOVY-8931:
---------------------------------------
Affects Version/s: 2.5.x
2.4.x
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:
{code}
class Foo extends Object implements Runnable {
void run() {}
}
{code}
Restored by AstNodeToScriptVisitor:
{code}
public class Foo implements java.lang.Runnable, groovy.lang.GroovyObject extends java.lang.Object {
...
}
{code}
was:
When the below code is restored using GroovyConsole (AstNodeToScriptVisitor), the restored code has
Original code:
{code}
class Foo extends Object implements Runnable {
void run() {}
}
{code}
Restored by AstNodeToScriptVisitor:
Component/s: Groovy Console
> 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
> Priority: Major
>
> 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}
> Restored by AstNodeToScriptVisitor:
> {code}
> public class Foo implements java.lang.Runnable, groovy.lang.GroovyObject extends java.lang.Object {
> ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)