GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-1427

Formatting multi-line list with as Object[] produces a compilation error

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.2.Release
    • Component/s: Editor, Formatting
    • Labels:
      None
    • Number of attachments :
      0

      Description

      After formatting the following script:

      def test() {
          [
              1,
              2,
              3
          ] as Object[]
      }
      

      The following source is produced:

      def test() {
          [
              1,
              2,
              3
          ]
          as Object[]
      }
      

      The error is on as Object[] with the message Groovy:unexpected token: as @ line 9, column 5

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Andrew Eisenberg
            Reporter:
            Bob Tiernay
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: