You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/02 02:04:14 UTC
[jira] [Closed] (GROOVY-7522) TupleConstructor overwrites empty
default constructors
[ https://issues.apache.org/jira/browse/GROOVY-7522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-7522.
-----------------------------
> TupleConstructor overwrites empty default constructors
> ------------------------------------------------------
>
> Key: GROOVY-7522
> URL: https://issues.apache.org/jira/browse/GROOVY-7522
> Project: Groovy
> Issue Type: Bug
> Components: xforms
> Reporter: Keegan Witt
> Assignee: Paul King
> Labels: breaking_change
> Fix For: 2.5.0-alpha-1
>
>
> {{@TupleConstructor}} should not overwrite existing empty default constructors. For example, this should work, but doesn't currently
> {code:java}
> assert new Cat("Mr. Bigglesworth").name == null // fails
> @groovy.transform.TupleConstructor
> class Cat {
> String name
> int age
> Cat(String name) {}
> }
> {code}
> Granted, this is an edge case. But unexpected behavior, nonetheless.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)