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

Groovyc does not accept non-existant files in classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.1-rc-3
    • None
    • None

    Description

      While javac and other compilers accept that files in classpath may not exist, groovyc does not, because it passes each file to AntClassLoader.addPathElement and fails.
      The fix would be to change line 603 of Groovyc.java with

      603c603
      < if (!found)

      > if (!found && new File(cpEntry).exists() )

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            aalmiray Andres Almiray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: