Target Java 11 bytecode#2750
Conversation
There was a problem hiding this comment.
Code Review
This pull request upgrades the project's Java requirement from version 8 to version 11, updating both the README and the Gradle build configuration. Feedback indicates that the documentation update is inconsistent with the 'How to Build' section and notes that Android developers will require core library desugaring to support Java 11 APIs on older devices.
| - platform-neutral core library for scene graph, animation, rendering, math, etc. | ||
| - LWJGL v2/v3 (to access GLFW, OpenAL, OpenGL, and OpenVR) or Android or iOS | ||
| - Java Virtual Machine (v8 or higher) | ||
| - Java Virtual Machine (v11 or higher) |
There was a problem hiding this comment.
The update to Java 11 is a breaking change for users on older JVMs. This requirement is currently inconsistent with the build instructions in the 'How to Build' section (line 70), which should also be updated to specify JDK 11. Additionally, Android developers will need to enable core library desugaring to support Java 11 APIs on devices with API levels below 30.
|
The current ios backend is compatible only with java8, so for now we are stuck on that. |
Android gradle plugin has support for desugaring based on which min sdk you target. Is it time to bump this up to 11, along with other modernization we are doing with jme 3.10?