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 2017/05/02 02:04:16 UTC

[jira] [Closed] (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 closed GROOVY-7967.
-----------------------------

> 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
>              Labels: breaking
>             Fix For: 2.5.0-alpha-1
>
>
> 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.15#6346)