[
https://issues.apache.org/jira/browse/GROOVY-7503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King resolved GROOVY-7503.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.4.5
> 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)