Skip to content

compile with release instead of source/target - #137

Open
hboutemy wants to merge 1 commit into
in-toto:masterfrom
hboutemy:patch-1
Open

compile with release instead of source/target#137
hboutemy wants to merge 1 commit into
in-toto:masterfrom
hboutemy:patch-1

Conversation

@hboutemy

Copy link
Copy Markdown

No description provided.

Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
@nicokosi

Copy link
Copy Markdown

If my understanding is correct, it is preferable to do so because:

[...] unlike the -source and -target options, the compiler will detect and generate an error when using APIs that don't exist in previous releases of Java SE.

Cf.
https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html#setting-the-release-of-the-java-compiler

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