ascheman commented on issue #1085:
URL: 
https://github.com/apache/maven-compiler-plugin/issues/1085#issuecomment-5016919498

   I pushed a failing integration test that reproduces this, ready to fold into 
a PR together with the fix:
   
   - Branch: 
[`aschemaven:1085-incremental-default-recompiles-all`](https://github.com/aschemaven/maven-compiler-plugin/tree/1085-incremental-default-recompiles-all/src/it/incremental-default-no-processor)
   - Commit: aschemaven/maven-compiler-plugin@d123c4a389
   
   `src/it/incremental-default-no-processor` compiles three independent classes 
with the **default** incremental configuration (no annotation processor), 
modifies one class between two `compile` invocations, and asserts that only the 
modified file is recompiled. Verified against `master` 
(`4.0.0-beta-5-SNAPSHOT`) on a Maven 4.0.x-SNAPSHOT runtime:
   
   - **JDK 21** → red: `Recompiling all files because at least one source file 
changed.`
   - **JDK 25** → green: `Compiling 1 modified source file.`
   
   Happy to open the PR with the IT plus the `hasAnnotationProcessor()` fix if 
the approach in the description looks right to you.
   


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