What is a language construct? (was Re: Comment on state of Project Jigsaw)
Alex Buckley
alex.buckley at oracle.com
Wed Dec 21 17:32:12 PST 2011
On 12/21/2011 5:06 PM, Neal Gafter wrote:
> A use-site protection mechanism provides no protection, as one can just
> say "yes, it's accessible to me" at any place you want to use the thing
> supposedly protected.
I'm not getting my question across. _How_ do you say this at the place
you want to use the thing?
If the answer is "Just say the name of the thing!", then I ask: "How do
you know which module the thing comes from?"
Even with package dependences rather than module dependences, you still
need to say at the use-site which version of the package you want.
Perhaps you are proposing "import java.util.List @ 8.0;" ?
Alex
More information about the jigsaw-dev
mailing list