testing jigsaw builds
Mandy Chung
Mandy.Chung at Sun.COM
Tue Mar 16 08:42:44 PDT 2010
Mark Reinhold wrote:
>> Date: Mon, 15 Mar 2010 16:55:14 -0700
>> From: jonathan.gibbons at sun.com
>>
>
>
>> getSystemJavaCompiler() will only look in tools.jar if the classes are not
>> already available in the existing classloader. If you're running a jdk module
>> image, does that not have the javac classes available?
>>
>
> Yes, if the the module containing javax.tools.ToolProvider (i.e.,
> sun.langtools) is declared to have an optional dependence upon the
> javac module, and the javac module is installed.
>
>
Jon,
If you want to experiment this, you can edit the generated
module-info.java file for now ($outputdir/tmp/modules/src).
I'll update the classanalyzer to support the optional dependence
declaration.
Mandy
More information about the jigsaw-dev
mailing list