Compiler support for private interface methods.
David Holmes
david.holmes at oracle.com
Mon Jan 30 20:33:52 UTC 2017
Alex already answered but to clarify one part ...
On 29/01/2017 1:09 PM, Manish Motwani wrote:
> Hi,
>
> This is in reference to:
> http://mail.openjdk.java.net/pipermail/jdk9-dev/2015-March/001981.html
>
> Thanks for fixing this!
>
> Is there also a plan to allow "*private static*" fields on interfaces?
> "public" and "package protected" static fields are already allowed, but
I think you are taking lack of an access modifier as implying "package"
access, but that is not the case in interfaces, where the implied
accessibility is public.
David
-----
> private static fields can also be useful in default methods on interfaces.
>
> Thanks,
> Manish
>
More information about the jdk9-dev
mailing list