Opened 8 years ago
Last modified 7 years ago
#16047 closed enhancement
Add compatibility with Java 11 — at Version 46
| 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.DatatypeConverterclass which has been removed in JEP 320Jacoco does not support Java 11 yetJacoco 0.8.2 released with java 11/12 supportJDK-8198899: Signature of WindowsPreferences methods changes (hkey changed from int to long)- Nashorn JavaScript Engine is deprecated!
- JMockit is not compatible with Java 11 yet
See #16498 for Java 12 compatibility.
Change History (46)
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) |
|---|
comment:11 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:14 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:15 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:17 by , 8 years ago
| Description: | modified (diff) |
|---|
Jacoco issue for Java 11: https://github.com/jacoco/jacoco/issues/663
comment:18 by , 8 years ago
Finally some possible good news for WebStart: https://lists.openstreetmap.org/pipermail/josm-dev/2018-April/008023.html
comment:19 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:31 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:36 by , 7 years ago
Updates on plugin side:
[o34409] fix JAXB builds
[o34408] fix XJC scripts
[o34388] add JAF 1.2.0 from https://github.com/javaee/activation/releases/tag/JAF-1_2_0
[o34377] add svn:executable bit
[o34376] fix JAXB build
[o34375] include JAXB, removed in JDK11
[o34373] restore target=1.8, remove add-modules option for javac targets
[o34368] remove target=1.8, keep only source=1.8
[o34367] add java.activation,java.se.ee modules for Java 9/10
[o34366] add java.activation,java.se.ee modules for Java 9/10
[o34364] fix java version
[o34363] Add compatibility with Java 10/11
comment:39 by , 7 years ago
News:
- Hendrik Ebbers started a project to offer a Java Web Start replacement
- He wrote a very interesting blog post
- Oracle didn't like it :D
- I managed to get from an (annoying) Oracle guy an important information: In October, Java 10 on Windows/mac will offer to downgrade to Java 8 so that WebStart and security updates are still provided!
comment:40 by , 7 years ago
| Description: | modified (diff) |
|---|
comment:41 by , 7 years ago
| Description: | modified (diff) |
|---|
comment:44 by , 7 years ago
We should keep an eye how Minecraft Java Edition and Minecraft Launcher evolve in the next months:
- https://minecraft.gamepedia.com/Java_Edition
- https://minecraft.gamepedia.com/Minecraft_launcher
- https://bugs.mojang.com/projects/MCL/issues/
I guess it will be as complex for them than us.
comment:46 by , 7 years ago
| Description: | modified (diff) |
|---|



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