LouisLou2 opened a new issue, #2435:
URL: https://github.com/apache/fory/issues/2435
### Question
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.
```java
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?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]