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

Groovy gives an incorrect error message when it fails to compile a dependent class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-JSR-2
    • class generator
    • None

    Description

      create two files:

      foo.groovy:
      println new bar()

      bar.groovy:
      class bar { // intentional error

      Put them in the same directory and put that directory in the classpath.

      groovy foo.groovy:
      General error during class generation: No such class: bar in constructor call for class: foo. At [1:9] foo.groovy

      1 Error

      I'm sure its swallowing the error when it tries to compile bar.groovy.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            spullara Sam Pullara
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: