-
Notifications
You must be signed in to change notification settings - Fork 310
Open
Labels
Description
I'm trying to use Fury on Android(Using Kotlin) and ran into some initialization issues. I have a quick question about platform support.
It seems there are two main blockers for Android:
Java Version Check: The static initializer in _JDKAccess fails with a NumberFormatException because System.getProperty("java.specification.version") returns "0.9" on Android.
static {
String property = System.getProperty("java.specification.version"); // for Android, always "0.9"
if (property.startsWith("1.")) {
property = property.substring(2);
}
String jmvName = System.getProperty("java.vm.name", "");
IS_OPEN_J9 = jmvName.contains("OpenJ9");
JAVA_VERSION = Integer.parseInt(property); // exception: 0.9 can't be parsed to an Integer
//...
}
sun.misc.Unsafe API: Fury relies heavily on sun.misc.Unsafe, which isn't available on standard Android runtimes.
Given these, are there any plans or known workarounds to get Fury running on Android?
Additional Context
https://youtrack.jetbrains.com/issue/KT-44089/Java-version-checking-doesnt-work-on-Android