RFR: 8372850: Update comment in SourceVersion for language evolution history for changes in 26

Chen Liang liach at openjdk.org
Tue Dec 2 01:47:49 UTC 2025


On Tue, 2 Dec 2025 00:59:02 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Include source-level comments about per-release language changes, or lack thereof.

Changes requested by liach (Reviewer).

src/java.compiler/share/classes/javax/lang/model/SourceVersion.java line 87:

> 85:      *      instance main methods, and flexible constructor bodies
> 86:      *      (primitive Types in Patterns, instanceof, and switch in
> 87:      *      second preview, module Import Declarations in third

module import was already finalized in 25, and primitive type in patterns... was in 3rd preview in 25.

src/java.compiler/share/classes/javax/lang/model/SourceVersion.java line 90:

> 88:      *      preview)
> 89:      *  26: no changes (primitive Types in Patterns, instanceof, and
> 90:      *      switch in second preview, module Import Declarations in fourth

4th preview now, no module import changes

-------------

PR Review: https://git.openjdk.org/jdk/pull/28594#pullrequestreview-3527798030
PR Review Comment: https://git.openjdk.org/jdk/pull/28594#discussion_r2579293201
PR Review Comment: https://git.openjdk.org/jdk/pull/28594#discussion_r2579293686


More information about the compiler-dev mailing list