Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7
-
windows 7, java 8, groovy script
Description
When trying to add dynamically a trait T with a SelfType type restriction on class C, to an instance of that class C, the script throws :
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'C@92dae4' with class 'C' to class 'T'