[
https://issues.apache.org/jira/browse/GROOVY-11041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-11041.
------------------------------
> Incorrect property handling for records
> ---------------------------------------
>
> Key: GROOVY-11041
> URL: https://issues.apache.org/jira/browse/GROOVY-11041
> Project: Groovy
> Issue Type: Bug
> Components: record
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 4.0.12
>
>
> While it is not normal to override record component getters, it is perfectly
> allowable.
>
> The following record is getting both an "x()" method and a "getX()" method.
> The supplied "x()" method isn't being associated correctly with the property.
> {code:java}
> record Foo(String x, String y) {
> String x() {
> 'z'
> }
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)