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

GroovyCastException after upgrade from Groovy 1.7.10 to 1.8.3

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.3
    • Fix Version/s: 4.x
    • Component/s: parser
    • Labels:
      None
    • Environment:
      n.a.

      Description

      Have a catetegory with

        public static Object asType(Byte p_byteSelf, Class<?> p_class)
        {
          //...
          return new MyClass(p_byteSelf);
        }
      

      With Groovy 1.7.10 the script

        def v
        v = (byte)15 as MyClass  
      

      worked fine.

      With Groovy 1.8.3 a org.codehaus.groovy.runtime.typehandling.GroovyCastException is thrown.

      Has the operator precedence been changed?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              veita Alexander Veit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: