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

Parser thows nullpointer exception for missing close brace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-3
    • 1.0-beta-4
    • parser
    • None

    Description

      class Test {
      static main(args) {
      }

      throws
      Exception in thread "main" java.lang.NullPointerException
      at org.codehaus.groovy.syntax.parser.UnexpectedTokenException.getMessage(UnexpectedTokenException.java:74)
      at java.lang.Throwable.getLocalizedMessage(Throwable.java:266)
      at java.lang.Throwable.toString(Throwable.java:343)
      at java.lang.String.valueOf(String.java:2131)
      at java.lang.StringBuffer.append(StringBuffer.java:370)
      at groovy.lang.GroovyShell.main(GroovyShell.java:90)

      Attachments

        Activity

          People

            Unassigned Unassigned
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: