[ 
https://issues.apache.org/jira/browse/GROOVY-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-9857.
-----------------------------

> Immutable generates invalid super constructor call
> --------------------------------------------------
>
>                 Key: GROOVY-9857
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9857
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 3.0.7
>            Reporter: Christopher Smith
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 4.0.7
>
>
> The transforms invoked by {{@Immutable}} generate constructor code that 
> unconditionally makes a call to {{super()}} even when the superclass has no 
> default constructor.
> {code:groovy}
> @TupleConstructor(defaults = false)
> abstract class AbstractClass {
>     String a
> }
> @Immutable
> class ImmutableSubclass extends AbstractClass {
>     String i
> }
> {code}
> Compiling this pair produces {{invokespecial AbstractClass.<init>()}}, which 
> does not exist. This should at a minimum produce a compile-time error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to