Valhalla EG minutes Jan 31, 3018

Brian Goetz brian.goetz at oracle.com
Wed Feb 14 14:41:24 UTC 2018


> Q: Is there a nestmate relationship between top level classes that share the same source file?
> A: No. Being defined in the same source file is not sufficient to have a nestmate relationship.

More precisely: that’s up to the language compiler.  If the rules of your language say that these classes are nest mates, they are nest mates.  

By default, Java will likely not treat them as nest mates.




More information about the valhalla-spec-observers mailing list