hg: jigsaw/jake: Aligning jake build changes with jdk9 PathList make macro

2015-09-11 Thread erik . joelsson
Changeset: 2d8a9f34a025 Author:erikj Date: 2015-09-09 18:38 +0200 URL: http://hg.openjdk.java.net/jigsaw/jake/rev/2d8a9f34a025 Aligning jake build changes with jdk9 PathList make macro ! common/autoconf/spec.gmk.in ! make/common/JavaCompilation.gmk ! make/common/MakeBase.gmk

Re: CFV: New Jigsaw Committer: Harold Seigel

2015-09-11 Thread Jim Laskey (Oracle)
Vote: yes — Jim > On Sep 11, 2015, at 1:31 PM, Karen Kinnear wrote: > > > I hereby nominate Harold Seigel to Jigsaw Committer. > > Harold is a member of the hotspot runtime team and a Reviewer on the jdk9 > project. > Harold has been contributing to Project Jigsaw

Re: Groovy with Jigsaw

2015-09-11 Thread Alan Bateman
On 11/09/2015 10:21, Jochen Theodorou wrote: the error in Guava is not a failed attempt, it is a VerifyError, because AccessibleObject#setAccessible is now final and com.google.common.reflect.Element overrides the method. As far as I have seen Guava makes a parallel reflective structure of

Re: Groovy with Jigsaw

2015-09-11 Thread Jochen Theodorou
Am 11.09.2015 10:16, schrieb Alan Bateman: On 11/09/2015 08:47, Cédric Champeau wrote: For what it's worth, the issue that triggered this conversation is the one reported by Uwe. For Groovy we have a chicken and egg problem for testing, because this change breaks Groovy, and Groovy uses Gradle

RE: Groovy with Jigsaw

2015-09-11 Thread Uwe Schindler
Hi, > On 10/09/2015 23:57, Uwe Schindler wrote: > > : > > > > I also wanted to ask the question: setAccessible() already throws > > some > checked exceptions, why invent a new one that’s no longer checked? > Could it not simply be one already there - one of the checked ones - > or a new one

Re: jigsaw EA feedback for Eclipse/JBoss Tools and WildFly

2015-09-11 Thread Rory O'Donnell
Thanks for the update Martin! On 11/09/2015 08:30, Martin Malina wrote: On 10. 9. 2015, at 15:41, Alan Bateman > wrote: On 10/09/2015 14:21, Rory O'Donnell wrote: Martin - thanks for your feedback, not sure your email made it to the

Re: Groovy with Jigsaw

2015-09-11 Thread Alan Bateman
On 11/09/2015 08:47, Cédric Champeau wrote: For what it's worth, the issue that triggered this conversation is the one reported by Uwe. For Groovy we have a chicken and egg problem for testing, because this change breaks Groovy, and Groovy uses Gradle to build. Since Gradle itself uses Groovy,

Re: Groovy with Jigsaw

2015-09-11 Thread Jochen Theodorou
Am 11.09.2015 11:33, schrieb Alan Bateman: On 11/09/2015 10:21, Jochen Theodorou wrote: the error in Guava is not a failed attempt, it is a VerifyError, because AccessibleObject#setAccessible is now final and com.google.common.reflect.Element overrides the method. As far as I have seen Guava

RE: Groovy with Jigsaw

2015-09-11 Thread Uwe Schindler
Hi, > Caused by: java.lang.VerifyError: class com.google.common.reflect.Element > overrides final method java.lang.reflect.AccessibleObject.setAccessible(Z)V This is caused by the fact that the new JDK makes setAccessible final in the base class AccessibleObject. The Google Guava class

Re: CFV: New Jigsaw Committer: Harold Seigel

2015-09-11 Thread Santosh
Yes my vote Sent from my iPhone > On Sep 11, 2015, at 3:43 PM, Mandy Chung wrote: > > Vote: yes > > Mandy

jigsaw vs. jsr166 CVS

2015-09-11 Thread Martin Buchholz
Jigsawers: I tried to use jigsaw EA with jsr166 CVS for the first time. On a fresh jsr166 CVS checkout (http://g.oswego.edu/dl/concurrency-interest/), I did: ~/jsr166/jigsaw $ ant -v compile -Djdk9.home="$HOME/jdk/jigsaw-b80" and got: [javac]

Re: Jigsaw EA feedback for elasticsearch

2015-09-11 Thread Robert Muir
On Fri, Sep 11, 2015 at 6:09 AM, Alan Bateman wrote: > > I'm not sure that I understand the issue here but just to say that the > com.sun.management API is a documented/supported API and it exported by > module jdk.management: > > $ java -listmods:jdk.management > >

Re: Static layer descriptors

2015-09-11 Thread Ron Pressler
... Alternatively, instead of defining a new file format, is it possible for a Java agent to set up layers with the reflective API before the application starts? In either case, the build tool could generate the layers file/agent. Ron Ron Pressler paralleluniverse.co @puniverseco

Re: CFV: New Jigsaw Committer: Harold Seigel

2015-09-11 Thread Mandy Chung
Vote: yes Mandy

Re: jigsaw vs. jsr166 CVS

2015-09-11 Thread Alex Buckley
Hi Martin, javac is compiling your classes (in the unnamed module) against all the named modules in the image. One of those named modules (java.base) contains the java.util package, so your code (in the unnamed module) cannot also contain that package. [That's not quite true but go with it

Re: jigsaw vs. jsr166 CVS

2015-09-11 Thread Alex Buckley
Your -Xoverride value of .../src/main points to a package hierarchy (java/util/...) but it needs to point to a module hierarchy (java.base/java/util/...). That's the meaning of " is a directory that contains exploded-module directories" in JEP 261. Alex On 9/11/2015 4:30 PM, Martin Buchholz

Re: jigsaw vs. jsr166 CVS

2015-09-11 Thread Martin Buchholz
I tried adding -Xoverride, but it didn't help. --- build.xml 11 Sep 2015 18:43:46 - 1.177 +++ build.xml 11 Sep 2015 23:17:46 - @@ -347,6 +347,7 @@ fork="true"> + I can see that the compiler is being invoked like this: $ ant -v compile

Re: Project Jigsaw: Early-Access Builds available on jdk9.java.net/jigsaw

2015-09-11 Thread Mani Sarkar
Looking forward to it - always a pleasure to help. Cheers, Mani On Fri, Sep 11, 2015 at 11:35 AM, Alan Bateman wrote: > > > On 10/09/2015 22:12, Mani Sarkar wrote: > >> Jim you stole my thunder and lightening - that was it. >> >> Thanks Mani, thanks Jim, this is fixed

RE: Groovy with Jigsaw

2015-09-11 Thread Uwe Schindler
Just to conclude, there are 2 problems around setAccessible: First, it throws a new Exception type. This makes almost any Groovy script fail at some point, because it tries to add some meta class on the scripting level, and this call setAccessible on all fields and methods of any class used in

Re: Project Jigsaw: Early-Access Builds available on jdk9.java.net/jigsaw

2015-09-11 Thread Alan Bateman
On 10/09/2015 22:12, Mani Sarkar wrote: Jim you stole my thunder and lightening - that was it. Thanks Mani, thanks Jim, this is fixed on the QS page now. I've no doubt that in time that there will be much better examples and tutorials, that page is just a start. -Alan

Re: Groovy with Jigsaw

2015-09-11 Thread Jochen Theodorou
Am 11.09.2015 13:00, schrieb Uwe Schindler: Just to conclude, there are 2 problems around setAccessible: First, it throws a new Exception type. This makes almost any Groovy script fail at some point, because it tries to add some meta class on the scripting level, and this call setAccessible

Re: Jigsaw EA feedback on running an internal app

2015-09-11 Thread Alex Buckley
Hi Peter, On 9/11/2015 8:52 AM, Peter Levart wrote: Spotted an error in "The State of the Module System" document at: http://openjdk.java.net/projects/jigsaw/spec/sotms/ ... In the "Implied readability" section, it writes: The java.sql.Driver interface, in particular, declares the public

hg: jigsaw/jake/jaxp: 2 new changesets

2015-09-11 Thread mandy . chung
Changeset: 53fe3c103b6f Author:lana Date: 2015-09-11 10:26 -0700 URL: http://hg.openjdk.java.net/jigsaw/jake/jaxp/rev/53fe3c103b6f Added tag jdk9-b81 for changeset 6a418934997f ! .hgtags Changeset: faade39222ae Author:mchung Date: 2015-09-11 17:09 -0700 URL:

Re: Groovy with Jigsaw

2015-09-11 Thread Alan Bateman
On 10/09/2015 23:40, Jochen Theodorou wrote: : As far as I understood a classloader can have a N modules plus the unnamed module. I assume a the children of a classloader do not automatically share modules (or not at all?) with their children. The "Class loaders" section in the SOTMS

Re: Groovy with Jigsaw

2015-09-11 Thread Alan Bateman
On 11/09/2015 13:11, Jochen Theodorou wrote: Am 11.09.2015 13:00, schrieb Uwe Schindler: Just to conclude, there are 2 problems around setAccessible: First, it throws a new Exception type. This makes almost any Groovy script fail at some point, because it tries to add some meta class on the

Re: Groovy with Jigsaw

2015-09-11 Thread Jochen Theodorou
Am 11.09.2015 14:29, schrieb Alan Bateman: [...] Supporting dynamic languages and creating dynamic modules is very much an advanced topic at this time and there isn't support in the exported API for this. There is of course low-level support in the implementation and you'll find that Proxy and a

Re: Groovy with Jigsaw

2015-09-11 Thread Jochen Theodorou
Am 11.09.2015 14:47, schrieb Alan Bateman: [...] It's always been possible to configure the system class loader to be something else. So I'm curious what you do if it is a URLClassLoader, are you just looking for the class path? Then it would not work. But since the cases for @Grab have not

Jigsaw EA feedback on running an internal app

2015-09-11 Thread Peter Levart
Hi, Excellent work and congratulations on finally bringing modules to Java! I tried to run a medium-sized stand-alone server application with Jigsaw 9.0 EA build and it seems to work fine after adding a single -XaddExports option. This app uses the following 3rd party libraries/components: