You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/10/11 10:09:20 UTC
[jira] [Updated] (GROOVY-7967) AstNodeToScriptAdapter should output
source using the recommended modifier order
[ https://issues.apache.org/jira/browse/GROOVY-7967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King updated GROOVY-7967:
------------------------------
Description:
This source file:
{code}
interface Foo { }
{code}
when 'reprinted' via the groovyConsole shows up as:
{code}
abstract interface public class Foo extends java.lang.Object { }
{code}
We don't need to have both 'interface' and 'class' and the modifier order should follow the JLS recommendations.
In some sense this is a trviial change but we do have numerous tests which output the resulting source and check the value. We'll need to refactor those.
It is a breaking change only if the old source order was being relied upon.
> AstNodeToScriptAdapter should output source using the recommended modifier order
> --------------------------------------------------------------------------------
>
> Key: GROOVY-7967
> URL: https://issues.apache.org/jira/browse/GROOVY-7967
> Project: Groovy
> Issue Type: Bug
> Reporter: Paul King
> Assignee: Paul King
>
> This source file:
> {code}
> interface Foo { }
> {code}
> when 'reprinted' via the groovyConsole shows up as:
> {code}
> abstract interface public class Foo extends java.lang.Object { }
> {code}
> We don't need to have both 'interface' and 'class' and the modifier order should follow the JLS recommendations.
> In some sense this is a trviial change but we do have numerous tests which output the resulting source and check the value. We'll need to refactor those.
> It is a breaking change only if the old source order was being relied upon.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)