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

Misleading error message when using Java-style for loops

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-4
    • 1.0
    • None
    • None
    • Windows XP; Cygwin; Java 1.5.0_05

    Description

      The following code:

      for (; {
      println "Hi"
      }

      When run as:

      groovy myscript.groovy

      Produces:
      Caught: UNCAUGHT EXCEPTION: null

      A more descriptive error message would be helpful.

      Attachments

        Activity

          People

            paulk Paul King
            mcspanky Martin C. Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: