Question about FileManagers in Jigsaw.
Alan Bateman
Alan.Bateman at oracle.com
Mon Mar 12 07:09:49 PDT 2012
On 12/03/2012 09:59, Fredrik Öhrström wrote:
> :
> Thanks Jon!
>
> When in multiple module mode, is it the intention that module names look
> dns names in reverse?
> Like packages, if company Foo that owns www.foo.com the it will
> distribute their app under the
> module name com.foo? (The jdk is of course special with its jdk.base,
> jdk.corba etc etc)
Not necessarily, reserve DNS is a possible convention but it's likely
there will be others too, maybe <project/library>.<component> or names
similar to Maven artifact ids for example.
In the current prototype then JDK modules are prefixed with "jdk." or
"sun." but that will likely change. As the module graph and the modules
that comprise Java SE will be something defined by Java SE 8 then it's
very likely they will include "java" in the name.
>
> Is there a safety check for the views declared inside a module, so that
> the views have to be
> module+"."+viewname? Thus the only views allowed for com.foo are com.foo.bar
> com.foo.internal etc etc.
There isn't requirement that the view names be prefixed with the module
name. We have examples in the current prototype where this isn't the
case - for example the jdk.devtools module has the views jdk.javac and
jdk.javah.
>
> Can a single javac invocation handle both legacy non-module sources and
> sources put into a module.
>
> I.e.
> javac -d bin src/com/foo/LegacyApp.java src/com.foo/com/foo/NewApp.java
> src/com.foo/module-info.java
>
> And can NewApp refer to/use LegacyApp?
Jon is best one to answer this but it should work for a single module,
but not multiple modules of course.
-Alan.
More information about the jigsaw-dev
mailing list