private and non-final fields in Java 9 interfaces

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri May 12 11:43:14 UTC 2017


Did you make a mistake - e.g. used 'class' instead of 'interface' in 
your code?

Maurizio


On 12/05/17 10:31, Ess Kay wrote:
> The Java 9 compiler currently allows
> 1) private static and instance fields and
> 2) non-final static and instance fields.
> Please see the attached InterfacePrivateMemberTest0.java.
> Is this a bug?  If not then are these changes specified anywhere?



More information about the compiler-dev mailing list