RFR: 8356108: Update SourceVersion.RELEASE_25 description for JEPs 511 and 512
Joe Darcy
darcy at openjdk.org
Sat May 3 00:33:46 UTC 2025
On Fri, 2 May 2025 22:24:59 GMT, Chen Liang <liach at openjdk.org> wrote:
> Should we make this a simple source file?
That isn't necessary.
The purpose of this Versions.java test is focused on making sure setting --release has some effect for each release where a different source language is recognized. It is not attempting to be exhaustive that each new-in-release-N feature is accepted/rejected at appropriate source levels.
Per `javac` regression test conventions, the tests associated with a given feature should include negative tests that a new language construct is rejected on at least one older source/release version.
This test is more of a backstop insurance policy.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25015#discussion_r2072256954
More information about the compiler-dev
mailing list