groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From VG <vito...@gmail.com>
Subject @Delegate and Date
Date Tue, 25 Oct 2016 14:02:31 GMT
Hi there,

why this does not work?

class Example {
    @Delegate Date when
}

def x = new Example(when: new Date())
x.next()  // fails

I checked
http://docs.groovy-lang.org/latest/html/groovy-jdk/java/util/Date.html and
the next method is available there? Should not the method next be available
through @delegate?

Thanks, Vitor





--
View this message in context: http://groovy.329449.n5.nabble.com/Delegate-and-Date-tp5736295.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Mime
View raw message