Bump org.apache.maven.plugins:maven-plugins from 46 to 47 by dependabot[bot] · Pull Request #1019 · apache/maven-compiler-plugin (original) (raw)

The compilation fails on Java 25 with the following compilation errors:

target/it/MCOMPILER-540/code/src/main/java/bar/MyAnnotatedClass.java:25: error: cannot find symbol
    MyGeneratedClass generatedClass = new MyGeneratedClass();
    ^
  symbol:   class MyGeneratedClass
  location: class MyAnnotatedClass
target/it/MCOMPILER-540/code/src/main/java/bar/MyAnnotatedClass.java:25: error: cannot find symbol
    MyGeneratedClass generatedClass = new MyGeneratedClass();
                                          ^
  symbol:   class MyGeneratedClass
  location: class MyAnnotatedClass
2 errors
4 warnings

I presume that MyGeneratedClass was generated by annotation processor. The default value of the -proc compiler option changed from full prior Java 23 to non since Java 23. I presume that the MCOMPILER-540 integration test relies on the default value, which would explain why the same test passes in Java 17 and 21 but fails with Java 25.

The fix would be to add the <proc>full</proc> configuration option in the compiler plugin integration test MCOMPILER-540. We may need to check if there are other tests in this situation.