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

GroovyReflector: Class cast exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1-rc-3
    • None
    • None
    • Win XP; Groovy 1.0; JDK 1.5.0_06

    Description

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

      This error is reported when using the code and library attached.
      Until JSR-06 all was well and had been in use for some 15 months.
      The error has appeared since adopting Groovy 1.0.

      This is happening when operating at the command line.
      Strangely, the problem does not occur when running under Eclipse with the latest Groovy plugin!

      We guess the problem is with the implementation of MetaClassImpl.
      I understand that this is an area that has been subject to revision to better accommodate the MOP.
      Perhaps something is amiss here.

      Attachments

        1. utils.jar
          283 kB
          Kenneth Bell
        2. Hello.groovy
          0.1 kB
          Kenneth Bell
        3. Console.groovy
          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: