Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.7.10
-
None
-
None
Description
The following code causes ClassDefNotFound exception:
public Map<String, Object> toMap() { Map<String, Object> params = getPropertiesWithoutClassData() Map<String, Object> params = new HashMap<String,Object>(); params.each { if(it.value instanceof MyObject[]){ params.add(it.key, it.value) }else{ params.add("test","test") } } return params }
The equivalent java code works normally:
public Map<String, Object> toMap() { Map<String, Object> params = getPropertiesWithoutClassData() Map<String, Object> params = new HashMap<String,Object>(); for(String param : params) { if(params.get(param) instanceof MyObject[]){ params.add("works", "works") }else{ params.add("test","test") } } return params }
Running MacOSX 10.6.6