Skip to content

Target Java 11 bytecode#2750

Draft
8Keep wants to merge 1 commit into
jMonkeyEngine:masterfrom
8Keep:java-11-source-target
Draft

Target Java 11 bytecode#2750
8Keep wants to merge 1 commit into
jMonkeyEngine:masterfrom
8Keep:java-11-source-target

Conversation

@8Keep

@8Keep 8Keep commented May 9, 2026

Copy link
Copy Markdown
Contributor

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?

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread README.md
- 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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

@riccardobl

Copy link
Copy Markdown
Member

The current ios backend is compatible only with java8, so for now we are stuck on that.
I am working to a replacement

@riccardobl

Copy link
Copy Markdown
Member

New ios backend is merged, so we are not stuck on java 8 anymore. This can be rebased on the new master branch

@8Keep 8Keep force-pushed the java-11-source-target branch from 0c386b3 to f298636 Compare May 23, 2026 18:48
@codex128

codex128 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

What is the status of this PR? I'd like to use Cleaner from java 9, but if we're still targeting java 8 I'll go with something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants