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

Uninformative error message (stack trace) when adding a custom annotation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.6, 2.1.0-rc-3, 2.1.0
    • 4.x
    • Compiler
    • None
    • OSX, Gradle or IntelliJ compile or Maven eclipse compiler

    Description

      Adding the Gaelyk annotation @Entity results in a stack trace during compilation. In addition, no informative message is given as to which groovy file caused the issue.

      At the very least, a more explicative message (not a stack trace) should be given to the user as well as informing the user which file could not be compile.

      In a more general case, any stack trace that is thrown should have a message included with it stating the offending file name.

      Example:

      @Entity
      class Favorite {
          Date created
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sdmurphy Scott Murphy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: