Skip to content

[Question] There appear to be a few hurdles for Android support #2435

@LouisLou2

Description

@LouisLou2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions