Re: Java 9 support

2017-03-19 Thread Ralph Goers
I opened https://issues.apache.org/jira/browse/FELIX-5527 . Apparently the problem is with bnd-tools who seem to be ignoring the problem because Java 9 isn’t final. Since OSGi bundles don’t or won’t have support for multi-release jars they will

Re: Java 9 support

2017-03-16 Thread Matt Sicker
OSGi and Jigsaw have considerable overlap in concepts, so I'm assuming there will be integration efforts eventually. However, a friend went to JavaOne a year or two ago, and the Jigsaw folk were very dismissive of OSGi in general despite one of the leading OSGi spec leads being on the Jigsaw projec

Re: Java 9 support

2017-03-16 Thread Ralph Goers
Nevermind. I moved the dependency plugin after the bundle plugin so that the classes are copied after the bundle plugin runs and all is well. I have no idea how that will impact the OSGi bundle though. Then again, I have no idea if OSGi will support multi-release jars. Ralph > On Mar 15, 2017,

Re: Java 9 support

2017-03-15 Thread Ralph Goers
I have built the Java 9 code. Now I am copying the classes into the log4j-api jar. They have to be placed at META-INF/versions/9. However, when I do this I am getting an error from the Maven bundle plugin. [INFO] --- maven-bundle-plugin:3.2.0:manifest (default) @ log4j-api --- [ERROR] Manifest o

Re: Java 9 support

2017-03-15 Thread Ralph Goers
I don’t see a problem with it. What is released will still run fine on Java 7. It will just have some Java 9 components in the jar. The release is scheduled for late July. I haven’t seen any indication that it will be pushed again. I would rather be ready to take advantage of Java 9 on the day

Re: Java 9 support

2017-03-15 Thread Mikael Ståldal
It would be bad to require Java 9 to build the main project as long as Java 9 is not released. On Wed, Mar 15, 2017 at 4:27 PM, Ralph Goers wrote: > I can’t change the JDK from JDK 1.7. The rest of the build must be > compiled at Java 7 since that is what we support. I only want to compile > the

Re: Java 9 support

2017-03-15 Thread Ralph Goers
I can’t change the JDK from JDK 1.7. The rest of the build must be compiled at Java 7 since that is what we support. I only want to compile the new classes with Java 9. Using a profile is a very good solution. We would have to run the build twice but that would be OK. I will give that a try.

Re: Java 9 support

2017-03-15 Thread Remko Popma
Sorry, no idea. A separate repo sounds cleaner, but I haven't spent as much time as you thinking about this, so perhaps I'm wrong. It would be nice to not require Java 9 unless you want to compile the StackWalker stuff... On Thu, Mar 16, 2017 at 12:07 AM, Ralph Goers wrote: > I know how to impl

Re: Java 9 support

2017-03-15 Thread Matt Sicker
You can change the JDK from "JDK 1.7 (latest)" to one of the JDK 9 versions. Since there's no official release of 9 yet, they don't seem to have a "JDK 9 (latest)" profile set up on Jenkins yet. As for building this, the best solution I've seen so far basically involves a bit of manual configurati