MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
962 stars 133 forks source link

Java 10+ language features #556

Open CoderBaron opened 3 years ago

CoderBaron commented 3 years ago

I have a Java 10 project using the new language features like var and it compiles without issues for Android (most likely through d8). This doesn't work yet with the RoboVM compiler and I'm wondering if there is any work undergoing for supporting newest Java language features?

dkimitsa commented 3 years ago

To support java9+ we need to proper support of Dynamic Invoke implementation. Currently its implemented as RetroLambda. Java9 compiler is widely uses DI, for example for string concatenation. Don't think its is in active development today.

CoderBaron commented 3 years ago

Thanks for the info. I'll look into creating a PR for desugaring Java 9+ string concatenation (and anything else that's needed to make Java 9+ language features available for now).

CoderBaron commented 3 years ago

Support added through PR #558.

davidgiga1993 commented 2 years ago

Since the PR has been merged, what is still missing for this feature?

davidgiga1993 commented 2 years ago

Any update? Just want to understand if it would be possible to use java 11 features with robovm at some point. This is getting more and more an issue for me since more and more libraries are moving to jdk11