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

Unexpected newline error in method declaration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-JSR-6
    • parser-antlr2
    • None
    • Groovy Version: 1.0-RC-01-SNAPSHOT JVM: 1.5.0_06-b05

    Description

      class Something {
      static void something()
      throws IllegalArgumentException { }
      }
      >>unexpected token: <newline> @ line 2, column 24.

      At the moment, 'throws' must be on the first line of the method declaration to avoid the error.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            emp Edward Povazan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: