Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.8
-
None
Description
class MyMap extends LinkedHashMap { def foo = 1 } @CompileStatic class Main { static void main(String[] args) { def map = new MyMap() map.put('foo', 42) println map.foo // 1 is printed, should be 42 } }
Attachments
Issue Links
- is related to
-
GROOVY-5001 Map access is given higher precedence when trying to access fields/properties in classes which implement java.util.Map or extend java.util.HashMap or java.util.Properties
- Closed
- relates to
-
GROOVY-10540 Inconsistent application of and checking for GroovyObject in classgen
- Closed
- links to