Could we get module-private visibility?
Remi Forax
forax at univ-mlv.fr
Wed Sep 25 10:17:37 UTC 2019
----- Mail original -----
> De: "Mike Hearn" <mike at plan99.net>
> À: "Michael Rasmussen" <Michael.Rasmussen at roguewave.com>
> Cc: "jigsaw-dev" <jigsaw-dev at openjdk.java.net>
> Envoyé: Mercredi 25 Septembre 2019 11:30:00
> Objet: Re: Could we get module-private visibility?
> Yes, I know. I'm talking about module-private inside exported packages.
> Otherwise it can be quite difficult to allow exported and non-exported
> packages to work closely together without weakening visibility, and at any
> rate, whilst the compatibility considerations are obvious, having a
> visibility level of "public" that's actually private to a scope is not a
> design anyone would pick if they had a blank slate I imagine!
at the same time, a public method is not really public if the class is not public too,
so it's like russian dolls all the way down.
Rémi
More information about the jigsaw-dev
mailing list