AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

Port JDK 21's Java Compiler for Android

Open itsaky opened this issue 1 year ago • 1 comments

Currently, the Java compiler in AndroidIDE (which provides Java language features in the editor) is based on JDK 17 (nb-javac). Android projects can already use Java 17 language features in the Java source files (source) and support for JDK 21 will be added eventually (in AGP). For this reason, porting JDK 21's Java compiler for the IDE should be considered now.

In the existing compiler, there are features from nb-javac that we use. When porting the Java 21 compiler, we need to make sure that those changes from are also included.

Resources :

itsaky avatar Jan 15 '24 06:01 itsaky

Currently jdk21 nd-javac only netbeans project https://github.com/apache/netbeans/commit/9df1d37c68c964c25241191ef5eb55a1b5fb1a81

MrIkso avatar Jan 15 '24 08:01 MrIkso