Файли
openidea/crates
LrxcтаLrxc 71c5403e30 fix(java): compile annotation-generated sources incrementally (#8373)
The incremental Java build treated every generated source as the output of an aggregating processor, so any change recompiled the whole source set, and a deleted source left its generated sources and their classes behind. The build state now records the source javac names as each generated source's origin (JDK 18+): a change compiles that origin, which regenerates its generated sources and replaces their classes, dependents of a generated class compile its origin, and deleting the origin removes them. Files a processor writes without an origin (generated sources, classes, or resources such as META-INF/services that aggregating processors rewrite from the compiled sources alone) still make the next change compile the set from scratch. Covered by real-javac tests with an isolating and an aggregating processor.

Co-authored-by: Lrxc <[email protected]>
2026-12-06 22:50:37 +08:00
..