RFR: 8374522: Mobile: Add iOS as a platform in OperatingSystem.java
Johan Vos
jvos at openjdk.org
Sun Feb 1 22:48:34 UTC 2026
On Sat, 27 Dec 2025 07:13:09 GMT, Kolby Moroz Liebl <duke at openjdk.org> wrote:
> I don't know how but Kotlin calls OperatingSystem.IOS, adding iOS as an OperatingSystem fixed my problems, it had something to do with Kotlin's logging library if I remember correctly during initialization it calls something with OperatingSystem.IOS then it panics because IOS isn't an option in the OperatingSystem Class
All good now.
Can you create a JBS issue for this? In order for Skara to deal with this PR, it needs to be linked to an issue in JBS (project JDK, OS iOS).
https://bugs.openjdk.org/issues/?jql=project%20%3D%20%2210100%22%20AND%20OS%20%3D%20iOS
Let me know if you need help with this.
Can you change the title of this PR into
8374522: Mobile: Add iOS as a platform in OperatingSystem.java
src/java.base/share/classes/jdk/internal/util/OperatingSystem.java line 106:
> 104: @ForceInline
> 105: public static boolean isMacOS() {
> 106: // Treat iOS as macOS for compatibility with existing libraries unless specific IOS checks exist
I don't think this is needed once the isIOS() call is added? (which is added in this PR)
-------------
Marked as reviewed by jvos (Lead).
PR Review: https://git.openjdk.org/mobile/pull/44#pullrequestreview-3681459615
PR Comment: https://git.openjdk.org/mobile/pull/44#issuecomment-3699921066
PR Comment: https://git.openjdk.org/mobile/pull/44#issuecomment-3714292998
PR Review Comment: https://git.openjdk.org/mobile/pull/44#discussion_r2664561428
More information about the mobile-dev
mailing list