gnodet commented on code in PR #1217:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/1217#discussion_r4792530621


##########
pom.xml:
##########
@@ -196,6 +228,54 @@ under the License.
         </plugin>
       </plugins>
     </pluginManagement>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-java-build-version</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireJavaVersion>
+                  <!--
+                    Building this plugin requires JDK 24+ so that the 
java.lang.classfile

Review Comment:
   Nit (optional): Enforcer comment mentions src/main/java24 but this 
contradicts the sources section. The enforcer says 'Building this plugin 
requires JDK 24+ so that the java.lang.classfile classes in src/main/java24/ 
can always be compiled with -release 24', but the <sources> section (line 272) 
has java24 commented out with 'Uncomment after the work with classfile API 
started'. The comment describes future work as if it's already implemented.
   
   **Failure scenario:** Contributor reads enforcer comment → expects java24 
directory to exist → confused when it doesn't, or thinks they need to implement 
classfile API work before the PR can merge.
   
   **Fix:** Update the enforcer comment to clarify that JDK 24+ is required for 
future java24 work, not current code.
   
   _Claude Code on behalf of Guillaume Nodet_



##########
pom.xml:
##########
@@ -184,6 +204,18 @@ under the License.
             </pom>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <configuration>
+            <!--
+              Restrict javadoc to src/main/java only.
+              The src/main/java24 sources are a MR-JAR override for 
java.lang.classfile

Review Comment:
   Nit (optional): Javadoc comment references non-existent src/main/java24. The 
comment says 'The src/main/java24 sources are a MR-JAR override for 
java.lang.classfile and duplicate the same public API', but java24 doesn't 
exist yet (it's commented out in <sources>). The configuration is correct 
(restricting to src/main/java), but the comment mentions java24 instead of 
java22 which does exist.
   
   **Failure scenario:** Reviewer reads javadoc comment → looks for 
src/main/java24 → confused when it doesn't exist, or assumes the PR is 
incomplete.
   
   **Fix:** Change comment to mention src/main/java22, or add 'and future 
java24' to clarify it's documenting the pattern for when java24 is added.
   
   _Claude Code on behalf of Guillaume Nodet_



##########
.github/workflows/maven-verify.yml:
##########
@@ -26,9 +26,8 @@ jobs:
     name: Verify
     uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v5
     with:
-      jdk-distribution-matrix: '[ "temurin", "zulu", "microsoft" ]'
+      ff-jdk: '25'

Review Comment:
   Nit (optional): Microsoft JDK removed from distribution testing without 
explanation. The jdk-distribution-matrix removed 'microsoft' and the 
matrix-exclude for microsoft/JDK-25 was dropped. This reduces distribution 
coverage and could miss bugs specific to Microsoft's OpenJDK build.
   
   **Failure scenario:** Plugin has a bug only on Microsoft OpenJDK (e.g., 
different default options, path handling) → CI on temurin/zulu passes → bug 
affects Microsoft JDK users.
   
   **Fix:** If removal is intentional (e.g., microsoft doesn't support JDK 25), 
add a comment explaining why; otherwise restore microsoft to the matrix.
   
   _Claude Code on behalf of Guillaume Nodet_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to