Draft JVMS changes for Nestmates

John Rose john.r.rose at oracle.com
Wed Apr 19 05:52:32 UTC 2017


On Apr 18, 2017, at 11:58 AM, Brian Goetz <brian.goetz at oracle.com> wrote:
> 
> Minimal candidate:
> 
>    class Nest {
>        Class<?> hostClass() { ... }
>        boolean isMember(Class<?> clazz) { .... }
>    }
> 
>    class Class {
>       Nest getNest() { ... }
>    }

Or just:

class Class {
    Class<?> getNestHost(); // = this.MemberOfNest_attribute.host_class || this
    //and maybe:
    //boolean isInSameNest(Class<?> that) { return this.getNestHost() == that.getNestHost(); }
}
	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/valhalla-spec-experts/attachments/20170418/f909815a/attachment.html>


More information about the valhalla-spec-experts mailing list