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

class resolution pb when A.groovy script calls class in B.groovy under Java 5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-JSR-4
    • 1.0-JSR-6
    • None
    • None
    • Java 5 only

    Description

      Posted on behalf of Stefan Roock

      try this (is for WinXp command shell, adapt for others)


      set CLASSPATH=.
      echo class Bla{ def bla(){1}} > Bla.groovy
      groovy -e "assert 1==new Bla().bla()"


      it works fine with JDK 1.4
      with JDK 1.5 you get
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, script_from_command_line: 1: unable to resolve class Bla
      @ line 1, column 11.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            codevise Dierk König
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: