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.
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | blackdrag blackdrag [ blackdrag ] | |
| Affects Version/s | 1.8.5 [ 18071 ] | |
| Affects Version/s | 1.8.4 [ 17852 ] | |
| Affects Version/s | 1.8.3 [ 17657 ] | |
| Priority | Major [ 3 ] | Critical [ 2 ] |
blackdrag blackdrag
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 1.8.6 [ 18245 ] | |
| Fix Version/s | 2.0-beta-3 [ 18244 ] | |
| Resolution | Fixed [ 1 ] |
fixed