fskorgen opened a new issue, #8628:
URL: https://github.com/apache/hop/issues/8628

   ### What needs to happen?
   
   The build fails on JDK 26 and newer in `spotless:apply`. google-java-format 
(the version Spotless 2.43.0 uses by default) reads the javac field 
`JCCompilationUnit.endPositions`, which newer JDKs no longer have:
   
       java.lang.NoSuchFieldError: Class 
com.sun.tools.javac.tree.JCTree$JCCompilationUnit does not have member field 
'com.sun.tools.javac.tree.EndPosTable endPositions'
   
   **Proposed change**
   
   - `spotless-maven-plugin` 2.43.0 → 3.10.3
   - pin `googleJavaFormat` to 1.36.1 (built for Java 21, Hop's current target)
   
   **Impact**
   
   The newer formatter reformats a small number of files: mostly comment 
indentation inside `switch` blocks and a few text blocks. `sortPom` also 
collapses empty pom elements to `<x/>`. No functional changes.
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Infrastructure


-- 
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