Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.8.3, 1.8.4, 1.8.5
-
Fix Version/s: 1.8.6, 2.0-beta-3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
the program
ExpandoMetaClass.enableGlobally()
def proceed(){}
def checkResponse() {return null}
Integer responseCode = checkResponse()
if (responseCode == 200) {1.8.4 running in Grails 2.0.0
proceed()
}
will cause a ClassCastException because it tries to case null to in in a Groovy cast. This is due to responseCode being tried to inbox illegally using a GroovyCast. Instead no such cast should happen.
fixed