Skip to content

Restore deprecated Platform constants#2762

Merged
riccardobl merged 1 commit intojMonkeyEngine:masterfrom
8Keep:restore-platform-enum
May 10, 2026
Merged

Restore deprecated Platform constants#2762
riccardobl merged 1 commit intojMonkeyEngine:masterfrom
8Keep:restore-platform-enum

Conversation

@8Keep
Copy link
Copy Markdown
Contributor

@8Keep 8Keep commented May 10, 2026

Fix #2761

Copy link
Copy Markdown
Contributor

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

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 reorganizes the Platform enum and introduces several deprecated constants for 32-bit architectures across Windows, Linux, macOS, and Android to clarify their unsupported status. The review feedback highlights that the reorganization changes enum ordinal values, which may break binary compatibility if those ordinals are used for serialization or logic. Additionally, there are suggestions to improve the logical grouping of Android-related constants and to correct the Javadoc for Android_Other, which currently contains redundant references.

Comment on lines 167 to +175
/**
* iOS on x86_64 (simulator)
*/
iOS_X86(Os.iOS, true),
/**
* Generic web platform on unknown architecture
*/
Web(Os.Web, true) // assume always 64-bit, it shouldn't matter for web
;

/**
* iOS on ARM
*/
iOS_ARM(Os.iOS, true),
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 order of iOS_X86 and iOS_ARM has been swapped compared to their previous positions in the enum. This change, along with the general reorganization of the constants, alters their ordinal values. If any part of the engine or external user code relies on enum ordinals (e.g., for binary serialization or specific logic), this will break compatibility. It is recommended to maintain the original order of existing constants to preserve binary compatibility.

Comment thread jme3-core/src/main/java/com/jme3/system/Platform.java
@riccardobl riccardobl merged commit 95a4b90 into jMonkeyEngine:master May 10, 2026
13 checks passed
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.

changes to the Platform enum in 3.10.0-alpha4 not backward compatible

2 participants