Caciocavallo (was Re: <AWT Dev> Removing all methods that use the AWT peer types in JDK 9)
Alan Bateman
Alan.Bateman at oracle.com
Thu Feb 19 16:49:09 UTC 2015
On 19/02/2015 16:30, Roman Kennke wrote:
> :
> Hmm. I am not totally familiar, but from what I heard at FOSDEM from
> Mark Reinhold, it is possible to export certain APIs *only to other
> known modules*. This is similar in concept to C++ friends, except it
> happens on a module basis instead of class basis. Which is fine. Could
> somebody from jigsaw please comment on this, confirm or deny if I'm
> wrong with my understanding?
>
> So suppose we'd have a Cacio module that is part of OpenJDK (doesn't
> have to be part of any provided profile). Then the desktop module could
> export the required APIs to Cacio, without exporting it to anyone else.
> If I understand the modules stuff correctly.
The JSR 376 group is currently discussing the draft requirements
document, which has an item on this topic called "Qualified Exports":
http://openjdk.java.net/projects/jigsaw/spec/reqs/01#qualified-exports
You'll see a mention of the same concept in JEP 200 as it is very
important to our JDK modularization effort.
Do you publish the javadoc for your porting interface anywhere? Does it
require users of this porting interface to make direct use of sun.* types?
-Alan.
More information about the jigsaw-dev
mailing list