Skip to content

Support newer versions of javac#9

Merged
guillerodriguez merged 1 commit intomasterfrom
fix/support-newer-javac
Feb 16, 2026
Merged

Support newer versions of javac#9
guillerodriguez merged 1 commit intomasterfrom
fix/support-newer-javac

Conversation

@guillerodriguez
Copy link
Copy Markdown
Contributor

JamVM needs a java compiler when building for GNU Classpath, in order to compile the VM support classes (classes.zip). Currently, this breaks on JDK 9 or later, since the javac invocation uses -bootclasspath, which (on JDK 9+) needs explicit -source/-target.

Fix by adding -source 1.6 -target 1.6 to javac options (same as used by GNU Classpath itself).

While we are at this, also drop support for GCJ and Jikes. GCJ was officially discontinued in 2016 (removed from GCC 7). Jikes support was also removed from GNU Classpath long ago.

avazquezdev
avazquezdev previously approved these changes Feb 10, 2026
JamVM needs a java compiler when building for GNU Classpath, in
order to compile the VM support classes (classes.zip). The javac
invocation uses -bootclasspath, but on JDK 9+ this needs explicit
-source/-target. Fix by adding -source 1.6 -target 1.6 to javac
options (same as used by GNU Classpath itself).

Signed-off-by: Guillermo Rodríguez <grodriguez@ingelabs.com>
@guillerodriguez
Copy link
Copy Markdown
Contributor Author

Reverted the GCJ/Jikes change. This PR was only about adding support for newer javac.

@guillerodriguez guillerodriguez merged commit 0971791 into master Feb 16, 2026
3 checks passed
@guillerodriguez guillerodriguez deleted the fix/support-newer-javac branch February 16, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants