groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-7523) TupleConstructor with empty includes includes all
Date Thu, 06 Aug 2015 03:19:05 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-7523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14659407#comment-14659407
] 

Paul King commented on GROOVY-7523:
-----------------------------------

This is a breaking change for the specific edge case of explicitly providing an empty includes.
If affected by this change, remove the explicit includes or use the marker value as per the
respective annotation definitions.

> TupleConstructor with empty includes includes all
> -------------------------------------------------
>
>                 Key: GROOVY-7523
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7523
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Keegan Witt
>            Assignee: Paul King
>              Labels: breaking_change
>             Fix For: 2.5.0-beta-1
>
>
> I know this is a bit of an edge case, but I find the behavior doesn't follow what one
would expect
> {code:java}
> assert Cat.class.declaredConstructors.size() == 1  // fails
> @groovy.transform.TupleConstructor(includes=[])
> class Cat {
>   String name
>   int age
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message