AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.3k stars 272 forks source link

Port JDK 21's Java Compiler for Android #1657

Open itsaky opened 8 months ago

itsaky commented 8 months ago

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 :

MrIkso commented 8 months ago

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