Re: Upgradeable Modules Question

2016-09-07 Thread Richard Opalka
Hi Alan, On 09/07/2016 08:24 AM, Alan Bateman wrote: On 06/09/2016 23:37, Alex Buckley wrote: On 9/6/2016 3:31 PM, Richard Opalka wrote: Can Jigsaw module be both upgreadeable and automatic? No. By definition, an upgradeable module is a module linked into a runtime image. An automatic

Re: Upgradeable Modules Question

2016-09-07 Thread Richard Opalka
On 09/07/2016 10:32 AM, Alan Bateman wrote: On 07/09/2016 08:49, Richard Opalka wrote: Your guess was correct Alan (my english isn't perfect). Yes my distorted question was whether it should be possible to "upgrade" Jigsaw module with automatic module. Yes, you do can do this. Thanks for

Re: RFR 8165503: jlink exclude VM plugin's handling of jvmlibs is wrong

2016-09-07 Thread Jim Laskey (Oracle)
+1 > On Sep 7, 2016, at 8:43 AM, Sundararajan Athijegannathan > wrote: > > Please review http://cr.openjdk.java.net/~sundar/8165503/webrev.01/ for > https://bugs.openjdk.java.net/browse/JDK-8165503 > > Thanks, > > -Sundar >

RE: A few questions on layers ... and a compile problem with split-package caused by automatic module

2016-09-07 Thread Martin Lehmann
Hi Alan, thanks for your answers. Sorry for the late answer but I meanwhile uploaded the example to Github: https://github.com/accso/java9-jigsaw-examples/tree/master/jigsaw-examples/e xample_layer-hierarchy mod.main: LayerBuilder does the startup of Jigsaw layers:

RFR 8165503: jlink exclude VM plugin's handling of jvmlibs is wrong

2016-09-07 Thread Sundararajan Athijegannathan
Please review http://cr.openjdk.java.net/~sundar/8165503/webrev.01/ for https://bugs.openjdk.java.net/browse/JDK-8165503 Thanks, -Sundar

Re: Can jdeps resolve unnecessary dependencies?

2016-09-07 Thread Waldek Kozaczuk
Mandy, Thanks for you response. Will I be able to take advantage of jlink's ability to produce subset-only image of the JRE even if I do not use new Java 9 modular jars? In other words if my app.jar and other dependent jars are old java 8 ones and do not have any module descriptors will jlink be

Re: Any word on the updated spec

2016-09-07 Thread mark . reinhold
2016/9/7 7:50:54 -0700, Jayaprakash Artanareeswaran : > Now that JDK 9 is feature complete, I was wondering if > the JSR 376 has been updated recently. Specifically, I am interested in > many of the useful information found in the "State of the Module", such > as module graph.

Re: Can jdeps resolve unnecessary dependencies?

2016-09-07 Thread Sander Mak
> On 07 Sep 2016, at 16:12, Waldek Kozaczuk wrote: > > Will I be able to take advantage of jlink's ability to produce subset-only > image of the JRE even if I do not use new Java 9 modular jars? In other > words if my app.jar and other dependent jars are old java 8 ones

Any word on the updated spec

2016-09-07 Thread Jayaprakash Artanareeswaran
Hello experts, Now that JDK 9 is feature complete, I was wondering if the JSR 376 has been updated recently. Specifically, I am interested in many of the useful information found in the "State of the Module", such as module graph. Now I understand that the SOTM is an informal document, so

Re: Can jdeps resolve unnecessary dependencies?

2016-09-07 Thread Mandy Chung
> On Sep 7, 2016, at 8:07 AM, Sander Mak wrote: > > >> On 07 Sep 2016, at 16:12, Waldek Kozaczuk wrote: >> >> Will I be able to take advantage of jlink's ability to produce subset-only >> image of the JRE even if I do not use new Java 9 modular

Re: Can jdeps resolve unnecessary dependencies?

2016-09-07 Thread Waldek Kozaczuk
Thanks for your responses. So today I did some experimentation with Java 8 jdeps to analyze how my app.jar depends at class level on other jars and eventually individual JRE classes. I would run following command: jdeps -v -P -R -cp lib/* app.jar # where lib/ contains jars that app.jar depends

Re: Can jdeps resolve unnecessary dependencies?

2016-09-07 Thread Waldek Kozaczuk
My real question I am in pursuit of answering is this: is it in theory possible to build an automated process that would use jdeps to analyze my app to build a minimal JRE image it would run on? The latter could be done by rewriting rt.jar in Java 8 and using jlink in Java 9. Sent from my

Re: Can jdeps resolve unnecessary dependencies?

2016-09-07 Thread Mandy Chung
jdeps is only doing static analysis and doesn’t inspect reflection usage. It’s possible to build such an automated process but not reliable. Convert the app to modules with explict dependences will ensure reliable configuraton. AFAIK javapackager has a RFE to provide this functionality

Re: Upgradeable Modules Question

2016-09-07 Thread Alan Bateman
On 06/09/2016 23:37, Alex Buckley wrote: On 9/6/2016 3:31 PM, Richard Opalka wrote: Can Jigsaw module be both upgreadeable and automatic? No. By definition, an upgradeable module is a module linked into a runtime image. An automatic module is not linked into a runtime image. Maybe the