Opened 8 years ago
Last modified 7 years ago
#16047 closed enhancement
Add compatibility with Java 11 — at Version 10
| 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 uses
javax.xml.bind.DatatypeConverterclass which has been removed in JEP 320
Change History (10)
comment:1 by , 8 years ago
comment:3 by , 8 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 , 8 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 , 8 years ago
(this was expected as Jacoco does not yet support Java 10, because of slow ASM releases...)
comment:7 by , 8 years ago
| Milestone: | → 18.09 |
|---|
comment:8 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:10 by , 8 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.



Right now the build fails with:
compile-jmapviewer: [javac] Compiling 50 source files to /var/lib/jenkins/jobs/Java-EarlyAccess-JOSM/workspace/jdk/JDK11/build [javac] /var/lib/jenkins/jobs/Java-EarlyAccess-JOSM/workspace/jdk/JDK11/src/org/jdesktop/swinghelper/debug/CheckThreadViolationRepaintManager.java:19: error: cannot access WeakReference [javac] import java.lang.ref.WeakReference; [javac] ^ [javac] bad class file: /modules/java.base/java/lang/ref/WeakReference.class [javac] class file has wrong version 55.0, should be 53.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] 1 error