some basic questions about the module system concept
Alan.Bateman at oracle.com
Tue Sep 22 08:08:39 UTC 2015
On 22/09/2015 08:32, Jochen Theodorou wrote:
> Hi all,
> I am still not sure this is the right list to ask those things, but I
> guess you guys will tell me if there is a better place.
> First of all I was looking for a graph or something alike that shows
> what modules are supposed to be visible to applications. Couldn't
> easily find that. But I would assume anything in com.sun is not.
Do you build the prototype in the jigsaw/jake forest? If so then then
the gengraphs directory in the build output will probably help you on
In particular, the build generates a module-summary.html that is a table
that summarizes both the proposed standard and JDK-specific modules.
That summary has the API packages exported by each module. Some
JDK-specific modules don't export any API packages because they are
service provider modules or just API-less tools. I expect this table
will be useful to the JSR for Java SE 9 once it gets to define the
standard modules. There is also a .dot for each module so you can
visualize the graphs too.
Another easy way to list the observable modules in the prototype is
"java -listmods", drill down by specifying the module name as
sub-options ("java -listmods:java.se" for example).
More information about the jpms-spec-observers