groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Clark <>
Subject Re: what kind of class should a open block be?
Date Fri, 19 Jun 2015 05:43:49 GMT
Is there url you can provide showing the changes in JDK 9 that provide 
this new ability?

I'd like to comment, but I'm unsure of the subject matter. :-[

On 06/18/2015 11:24 PM, Jochen Theodorou wrote:
> no one?
> Am 17.06.2015 15:44, schrieb Jochen Theodorou:
>> Hi all,
>> since there are some changes in JDK9 that might get getSimpleName()
>> working on our generated closure classes. I was wondering what kind such
>> a class should actually be.
>> If we want getSimpleName() to not to return an empty string, then it
>> cannot be an anonymous class. It sure won't be a top-level class. That
>> leaves nested/inner classes and local classes. Usually only local and
>> anonymous classes have an enclosing method, so I think it should be one
>> of those.
>> If I understand Cedric right, it should be a local class. I think either
>> is fine actually. Historically, the inner class information was not very
>> reliable, so I think we are pretty open for this one
>> bye blackdrag

View raw message