Opened 7 years ago
Last modified 6 years ago
#16047 closed enhancement
Add compatibility with Java 11 — at Version 31
Reported by: | Don-vip | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.09 |
Component: | Core | Version: | |
Keywords: | java11 | Cc: |
Description (last modified by )
Follow-up of #15560
First EA builds of Java 11 are available.
Issues:
- WebStart will be removed in Java 11!
Wiremock 2.13.0 uses=> Solved by updating to 2.15javax.xml.bind.DatatypeConverter
class which has been removed in JEP 320- Jacoco does not support Java 11 yet
JDK-8198899: Signature of WindowsPreferences methods changes (hkey changed from int to long)- Nashorn JavaScript Engine is deprecated!
Change History (31)
comment:1 by , 7 years ago
comment:3 by , 7 years ago
Now the tests fail due to removal of EE APIs: [junit] java.lang.module.FindException: Module java.se.ee not found
comment:5 by , 7 years ago
Now jacoco crashes:
[jacoco:coverage] Enhancing junit with coverage [junit] FATAL ERROR in native method: processing of -javaagent failed [junit] java.lang.reflect.InvocationTargetException [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [junit] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [junit] at java.base/java.lang.reflect.Method.invoke(Method.java:564) [junit] at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:510) [junit] at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:522) [junit] Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented. [junit] at org.jacoco.agent.rt.internal_36ebf62.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139) [junit] at org.jacoco.agent.rt.internal_36ebf62.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100) [junit] at org.jacoco.agent.rt.internal_36ebf62.PreMain.createRuntime(PreMain.java:55) [junit] at org.jacoco.agent.rt.internal_36ebf62.PreMain.premain(PreMain.java:47) [junit] ... 6 more [junit] Caused by: java.lang.NoSuchFieldException: $jacocoAccess [junit] at java.base/java.lang.Class.getField(Class.java:1958) [junit] at org.jacoco.agent.rt.internal_36ebf62.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137) [junit] ... 9 more
comment:6 by , 7 years ago
(this was expected as Jacoco does not yet support Java 10, because of slow ASM releases...)
comment:7 by , 7 years ago
Milestone: | → 18.09 |
---|
comment:8 by , 7 years ago
Description: | modified (diff) |
---|
comment:10 by , 7 years ago
Description: | modified (diff) |
---|
comment:11 by , 7 years ago
Description: | modified (diff) |
---|
comment:14 by , 7 years ago
Description: | modified (diff) |
---|
comment:15 by , 7 years ago
Description: | modified (diff) |
---|
comment:17 by , 7 years ago
Description: | modified (diff) |
---|
Jacoco issue for Java 11: https://github.com/jacoco/jacoco/issues/663
comment:18 by , 7 years ago
Finally some possible good news for WebStart: https://lists.openstreetmap.org/pipermail/josm-dev/2018-April/008023.html
comment:19 by , 7 years ago
Description: | modified (diff) |
---|
comment:31 by , 7 years ago
Description: | modified (diff) |
---|
Right now the build fails with: