Open kutoman opened 5 years ago
It is strange that this didn't get caught in the compatibility compliance check during compile. String.format() isn't part of the CLDC11 jar, and likely won't work on other platforms as well. I think I implemented it in ParparVM to satisfy some internal Kotlin stuff that relied on it.
Looking at my implementation, it seems that it will only work for formatting Strings right now. It's a bit tricky to get it working correctly for other types of parameters.
but this code runs on Android without problems.
The CLDC11 jar is the "standard" runtime library that CN1 apps must conform to. The app will ultimately run on the platform's runtime library, which will be a superset of the CLDC11 jar. E.g. On Android it will run directly against the device's runtime. On iOS it will use ParparVM's runtime library. When we compile apps, we check for compliance with CLDC11 to guarantee runtime compatibility with all CN1 target platforms.
If this compliance step is skipped, then the code might run on a given platform, but also might not.
ok I see. I will use a custom format method instead.
error:
originated from:
xcode stacktrace: