You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Tomasz Przybysz (JIRA)" <ji...@apache.org> on 2018/09/20 17:41:00 UTC

[jira] [Created] (GROOVY-8803) Can't refer class declared with @Builder annotation

Tomasz Przybysz created GROOVY-8803:
---------------------------------------

             Summary: Can't refer class declared with @Builder annotation
                 Key: GROOVY-8803
                 URL: https://issues.apache.org/jira/browse/GROOVY-8803
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.5.2
            Reporter: Tomasz Przybysz


The following fails to compile:
{code:java}
import groovy.transform.builder.Builder

@Builder
class Foo {
    String bar
}

Foo.FooBuilder aBuilder = Foo.builder()
{code}
The compile error is:
{quote}Error:(8, 16) Groovyc: unable to resolve class Foo.FooBuilder
{quote}
I'm not sure if it's a bug. Although seems it should be possible to refer a `@Builder` generated class as any other.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)