diff --git a/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java b/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java
index 9260ce532f1..6bc1dab1f8a 100644
--- a/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java
+++ b/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java
@@ -81,6 +81,8 @@ public enum SourceVersion {
* switch in second preview, module Import Declarations in second
* preview, simple source files and instance main in fourth
* preview, flexible constructor bodies in third preview)
+ * 25: module import declarations, compact source files and
+ * instance main methods,
*/
/**
@@ -449,11 +451,18 @@ public enum SourceVersion {
* The version introduced by the Java Platform, Standard Edition
* 25.
*
+ * Additions in this release include module import declarations
+ * and compact source files and instance main methods.
+ *
* @since 25
*
* @see
* The Java Language Specification, Java SE 25 Edition
+ * @see
+ * JEP 511: Module Import Declarations
+ * @see
+ * JEP 512: Compact Source Files and Instance Main Methods
*/
RELEASE_25,
; // Reduce code churn when appending new constants
diff --git a/test/langtools/tools/javac/versions/Versions.java b/test/langtools/tools/javac/versions/Versions.java
index 6d885a55972..52b0f0d366d 100644
--- a/test/langtools/tools/javac/versions/Versions.java
+++ b/test/langtools/tools/javac/versions/Versions.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
* @bug 4981566 5028634 5094412 6304984 7025786 7025789 8001112 8028545
* 8000961 8030610 8028546 8188870 8173382 8173382 8193290 8205619 8028563
* 8245147 8245586 8257453 8286035 8306586 8320806 8306586 8319414 8330183
- * 8342982
+ * 8342982 8356108
* @summary Check interpretation of -target and -source options
* @modules java.compiler
* jdk.compiler
@@ -403,6 +403,14 @@ public class Versions {
}
}
"""),
+
+ SOURCE_25(25, "New25.java",
+ // New feature in 25: module import declarations
+ """
+ import module java.base;
+ public class New25 {
+ }
+ """),
; // Reduce code churn when appending new constants
private int sourceLevel;