Closed krichter722 closed 5 years ago
I have created a branch and will make this lib be buildable with Java 11. I'm not quite sure how to provide a release compatible with Java 11 without breaking Java 8 compatibility though.
@krichter722 I have adapted the project to be buildable with java 8 and 11. Do you have any suggestion on how to have a single release being usable with both java versions?
Thanks. There're different stages of Java 8 to 11 migration/coexistence (note the difference between source and target):
The simplest case If you want to be able to run with Java 8 and 11, just don't use Java 11 source features (enforce source
through the compiler).
After some trial and error I found out that when building with JDK 11 you cannot build with source 1.8 if module-info.java is used. Additionally if you build with source 11 you must use target 11.
module-info.java
has been introduced in Java > 8, so the 4th point of my explanation applies.
Hi @krichter722 @svendiedrichsen
We do have any update reading to this. I have been facing the same issue. While migrating from OpenJDK 8 to OpenJDK 11.
You can use our jollyday version, that is a fork and compatible with the api, see https://github.com/focus-shift/jollyday
@derTobsch Still, We are getting same error after using https://github.com/focus-shift/jollyday
Exception in thread "main" java.lang.Error: java.lang.reflect.InvocationTargetException
at com.sun.tools.xjc.reader.Ring.get(Ring.java:113)
at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.
Building
jollyday
with OpenJDK 11 fails due toexperienced with v_0_5_7-12-ge359ee2