Skip to content

Conversation

jonathanpeppers
Copy link
Member

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 and r8.jar.

After this change, I got the error:

error: option -bootclasspath not allowed with target 17

Which is fixed by using -classpath instead.

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` and `r8.jar`.

After this change, I got the error:

    error: option -bootclasspath not allowed with target 17

Which is fixed by using `-classpath` instead.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review November 8, 2024 14:13
@jonpryor jonpryor merged commit 165cef7 into main Nov 8, 2024
58 checks passed
@jonpryor jonpryor deleted the dev/peppers/java/source/target branch November 8, 2024 19:28
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants