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 2015/07/16 04:40:04 UTC
[jira] [Created] (GROOVY-7503) Builder with Initializer strategy
and no properties results in ClassFormatError
Paul King created GROOVY-7503:
---------------------------------
Summary: 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
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)