Groovy
  1. Groovy
  2. GROOVY-5077

GroovyCastException after upgrade from Groovy 1.7.10 to 1.8.3

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.3
    • Fix Version/s: 4.0
    • 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?

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development