groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Stagner <restag...@gmail.com>
Subject @Builder and Groovy In Action Second Edition
Date Sun, 02 Aug 2015 16:50:33 GMT
I'm relatively new to Groovy.  And, while working through the @Builder
example (Listing 9.9), from Groovy In Action Second Edition, which is a
*_fantastic_* book by the way, I was under the impression that the
following piece of code

@Builder
class Chemist {
    String first
    String last
    int born
}

def builder = Chemist.*builder()*


would result in the *builder() *method being recognized in the IDE I am
using (IntelliJ IDEA).  Instead, the IDE informs me "Cannot resolve symbol
'builder'".

I thought that since @Builder was a compile-time metaprogramming structure,
the IDE would recognize the *builder()* method and allow me to use the
IDE's auto-complete feature ...

Is that not true of the @Builder annotation ?
Am I making the wrong assumption here ?

Mime
View raw message