Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7967

AstNodeToScriptAdapter should output source using the recommended modifier order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0-alpha-1
    • None

    Description

      This source file:

      interface Foo { }
      

      when 'reprinted' via the groovyConsole shows up as:

      abstract interface public class Foo extends java.lang.Object {  }
      

      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.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              paulk Paul King
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: