You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/10/19 18:06:06 UTC

[jira] [Closed] (GROOVY-7503) Builder with Initializer strategy and no properties results in ClassFormatError

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

Pascal Schumacher closed GROOVY-7503.
-------------------------------------

> Builder with Initializer strategy and no properties results in ClassFormatError
> -------------------------------------------------------------------------------
>
>                 Key: GROOVY-7503
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7503
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>            Reporter: Paul King
>            Assignee: Paul King
>             Fix For: 2.4.5
>
>
> This script:
> {code}
> import groovy.transform.builder.*
> @Builder(builderStrategy=InitializerStrategy) class Foo { }
> assert Foo.createInitializer().class.name == 'Foo$FooInitializer'
> {code}
> gives this error during compilation:
> {noformat}
> java.lang.ClassFormatError: Duplicate method name&signature in class file Foo$FooInitializer
> {noformat}
> Creating a builder for a class with no properties using this strategy doesn't really make sense; however, we should give a sensible error message in this case.



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