Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-3
-
Component/s: class generator
-
Labels:None
-
Number of attachments :
Description
This class fails to load.
class GroovyProxy_5 implements test.baulsupp.groovy.SimpleInterface2 {
java.lang.String getInt(){
return (java.lang.String) XXX;
}
}
The error is this.
java.lang.VerifyError: (class: GroovyProxy_5, method: getInt signature: ()Ljava/lang/String
Wrong return type in function
at java.lang.Class.getDeclaredConstructors0(Native Method)
N.B. XXX should be coming from GroovyObject.setProperty().
I'll write a test case to try this out. One immediate thought; we've not implemented any cast operator yet. If you try remove the cast on the return, it might work