Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.6.7
-
Fix Version/s: 1.7.3, 1.6.9, 1.8-beta-1
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Given this code:
class Foo {
static prop = "sadfs"
static foo() {
return
}
}
Foo.foo().call()
A ClassCastException will be thrown even though printing out "this" inside of the closure prints out "class Foo".
Note this is not a duplicate of: http://jira.codehaus.org/browse/GROOVY-3863 which does not access the properties from within a returned closure.