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

Caught: java.lang.ClassCastException: gjdk.console.Console_GroovyReflector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-RC-1
    • 1.0-RC-1
    • None
    • None
    • Win XP
      JDK1.5.0_06; Groovy RC-1

    Description

      Caught: java.lang.ClassCastException: gjdk.console.Console_GroovyReflector

      The Console class (see attached) has worked satisfactorily for 12+ months.
      Its usage with RC-1 raises the ClassCastException.

      The Console class has been compiled with RC-1 into the utils.jar file (attached).
      The script example10.groovy (attached) imports from this jar which is on my classpath.

      When the Console class is placed alongside the script in the same folder all is ok.
      If the Console class is pasted into the script itself, then again, all is ok.

      The problem appears to be when I import from the jar.

      Attachments

        1. utils.jar
          283 kB
          Kenneth Bell
        2. Console.groovy
          2 kB
          Kenneth Bell
        3. example10.groovy
          0.2 kB
          Kenneth Bell

        Activity

          People

            blackdrag Jochen Theodorou
            kenb Kenneth Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: