private and non-final fields in Java 9 interfaces

Ess Kay s.2016.kay at gmail.com
Fri May 12 09:31:46 UTC 2017


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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InterfacePrivateMemberTest0.java
Type: application/octet-stream
Size: 866 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20170512/6ea17e11/InterfacePrivateMemberTest0.java>


More information about the compiler-dev mailing list