jigsaw now sync'ed with jdk8-b23

Mandy Chung mandy.chung at oracle.com
Tue Jan 31 15:49:02 PST 2012


On 1/31/2012 2:07 PM, Ludovic HOCHET wrote:
> Hello,
> I tried building the latest source, but I'm having the following when
> trying to launch jconsole:
>

Thanks for reporting it.
> ludovic at jigsaw-vm:~/dev/jigsaw$ export
> JIG=~/dev/jigsaw/build/linux-i586/jdk-module-image
> ludovic at jigsaw-vm:~/dev/jigsaw$ $JIG/bin/java -m jdk.jconsole
> Exception in thread "main" java.util.ServiceConfigurationError:
> sun.java2d.pipe.RenderingEngine: Provider
> sun.java2d.jules.JulesRenderingEngine not found

This depends on the services support that Alan is working on [1].   The 
service loader is not yet module-aware.  Prior to the module views and 
exports change, all public types including 
sun.java2d.jules.JulesRenderingEngine are exported and that's why it was 
working previously.

sun.java2d.pipe.RenderingEngine calls ServiceLoader.loadInstalled method 
to create a new service loader using the extension class loader.  In 
module mode, there isn't any extension class loader but instead it 
should use the caller's module loader.

Alan, what do you think to integrate the change you have in the 
ServiceLoader class that uses the proper module loader in module mode 
first?   I think that can be separated from the services work.

Mandy
[1] 
http://mail.openjdk.java.net/pipermail/jigsaw-dev/2011-December/001819.html



More information about the jigsaw-dev mailing list