Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.12
-
None
Description
Consider the following:
class Bar { @groovy.beans.Bindable String baz String other } class Foo { Bar bar @groovy.beans.Bindable String foo @groovy.transform.CompileStatic void postConstruct() { bar = new Bar() bar.with { addPropertyChangeListener('baz') { event -> other = 'value' // ClassCastException: class Foo cannot be cast to class Bar print 'changed' } } print 'ready;' } } Foo foo = new Foo() foo.postConstruct() foo.getBar().setBaz('xxx')
Attachments
Issue Links
- is caused by
-
GROOVY-11029 SC: super property is not accessible by a subclass that defines a getter and setter
- Closed