Running javac with a newer -source and -target can run additional optimizations that results in slightly smaller Java bytecode and runtime performance.
We should do this for all Java code we build as part of the product, as it might improve install size & build times for tools like manifestmerger.jar and r8.jar.
After this change, I got the error:
error: option -bootclasspath not allowed with target 17
Context: https://stackoverflow.com/a/76043133
Running
javac
with a newer-source
and-target
can run additional optimizations that results in slightly smaller Java bytecode and runtime performance.We should do this for all Java code we build as part of the product, as it might improve install size & build times for tools like
manifestmerger.jar
andr8.jar
.After this change, I got the error:
Which is fixed by using
-classpath
instead.