desruisseaux commented on PR #1019:
URL:
https://github.com/apache/maven-compiler-plugin/pull/1019#issuecomment-3799724596
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.
--
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]