I don't see that those issues deal with the change in behavior regarding a null parent
class loader. They deal with the inability to add reads that are apparent cycles and the
addition of a ClassLoader.get PlatformClassLoader() method, which has been added in build
126. I have submitted a bug with the test example found here:
https://github.com/RedHatJava9Testing/URLClassLoader.git
----- Original Message -----
From: "Scott Stark" <sstark(a)redhat.com>
To: "Tomaž Cerar" <tomaz.cerar(a)gmail.com>
Cc: wildfly-dev(a)lists.jboss.org
Sent: Monday, July 11, 2016 10:48:37 AM
Subject: Re: [wildfly-dev] common cdi-tck problem on wildfly with java 9
Ok, I'll look at those, but I am using the b126 build. Maybe the fix slipped.
[tmp 512]$ java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+126)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+126, mixed mode)
----- Original Message -----
From: "Tomaž Cerar" <tomaz.cerar(a)gmail.com>
To: "Scott Stark" <sstark(a)redhat.com>
Cc: wildfly-dev(a)lists.jboss.org
Sent: Monday, July 11, 2016 6:44:36 AM
Subject: Re: [wildfly-dev] common cdi-tck problem on wildfly with java 9
This is one of known issues, see for details:
http://openjdk.java.net/projects/jigsaw/spec/issues/#module-graphs
http://openjdk.java.net/projects/jigsaw/spec/issues/#ClassFilesAsResources
http://openjdk.java.net/projects/jigsaw/spec/issues/#PlatformClassLoader
Some of this is being addressed as part upcoming jigsaw b126
--
tomaz
On Mon, Jul 11, 2016 at 10:36 AM, Scott Stark <sstark(a)redhat.com> wrote:
So the problem is a change in behavior of a URLClassLoader that has a
null
parent class loader. This seems like it is a big compatibility problem as
classes defined by such a class loader only have visibility into the
java.base module rather than the entire platform.
The simple fix is to pass in the new ClassLoader.getPlatformClassLoader()
as the URLClassLoader parent rather than null. However, this seems like
what the ClassLoader should be doing itself as I would expect a lot of code
will break. I'll create a bug report for the simple test case I have that
shows the problem.
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev