You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/07/15 17:25:00 UTC
[jira] [Commented] (GROOVY-11644) Record classes with a map parameter cause errors with duplicate map constructors
[ https://issues.apache.org/jira/browse/GROOVY-11644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18007294#comment-18007294 ]
ASF GitHub Bot commented on GROOVY-11644:
-----------------------------------------
eric-milles opened a new pull request, #2264:
URL: https://github.com/apache/groovy/pull/2264
`@RecordType` should not set `namedVariant=true` when only record component is a `Map`.
> Record classes with a map parameter cause errors with duplicate map constructors
> --------------------------------------------------------------------------------
>
> Key: GROOVY-11644
> URL: https://issues.apache.org/jira/browse/GROOVY-11644
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 5.0.0-alpha-12
> Reporter: Saravanan
> Assignee: Eric Milles
> Priority: Minor
>
> Records that have a map field with static compilation enabled will produce this error
>
> {code:java}
> // The constructor public void <init>(java.util.Map __namedArgs) { ... }duplicates another constructor of the same signature
> record AttributeRules(Map<String, List<Integer>> ruleIDs) {
> }
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)