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

Bad implementation of MultipleCompilationErrorsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-3, 1.0-JSR-4
    • 1.0-JSR-5
    • parser
    • None

    Description

      ToString method is implemented instead of getMessage in org.codehaus.groovy.control.MultipleCompilationErrorsException class. This breaks the contract of Throwable super class causing silly messages to be printed, when the exception is thrown.
      I get this message in my progam:
      ...
      Caused by: java.lang.RuntimeException: startup failed
      ...

      I changed the implementation which improves the message:
      ...
      Caused by: java.lang.RuntimeException: startup failed, groovy.script: 1: unexpected token: > @ line 1, column 24.
      1 Error
      ...

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            pjurica Patrik Jurica
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: