Christopher Smith created GROOVY-12546:
------------------------------------------
Summary: Nested @POJO reading outer constant casts this to
GroovyObject
Key: GROOVY-12546
URL: https://issues.apache.org/jira/browse/GROOVY-12546
Project: Groovy
Issue Type: Bug
Components: Compiler, Static compilation
Affects Versions: 6.0.0, 5.1.3
Reporter: Christopher Smith
Attachments: mcve02_pojo_nested_reads_outer_constant.groovy
When a nested {{@POJO}} references a constant defined in the outer class, 4.x
correctly reads the constant. 5.x and 6.0.0 instead try operations on the
nested class, apparently all a red herring, culminating in a bogus cast.
This operation is broken as of 5.0.0-alpha-5, and the exact failure mode
changes in 5.0.0-alpha-11. Claude suspects an interaction with GROOVY-11853.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)