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

Unclear error message for syntax error when using generics and forget bracket

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • Compiler
    • None
    • ubuntu 08.04
      eclipse v3.3.2
      latest groovy plugin
      jdk 1.6.0_06

    Description

      The following code gives an unclear error message.
      Error message given is
      (currentLtLevel != 0) || ltCounter == currentLtLevel @ line -1, column -1. Sandbox/src/test GenericsError.groovy line 1 1211441271049 2180

      The error in the code is that it's missing the closing bracket ">"

      package test

      class GenericsError {
      static void main(args)

      { def someList = new ArrayList<Integer() }

      }

      Attachments

        1. GenericsError.groovy
          0.1 kB
          Josh

        Activity

          People

            roshandawrani Roshan Dawrani
            joshjdevl Josh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: