Two javac invocations into one -d become two source sets (main + main2)

Aperta
#222 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, kotlin

Direzione di ricerca

Start in CompileListToSourceSets and compare the javac path with SharedDestination.foldKotlinc; inspect the cited reproduction at javac lines 2930/2932 and 3470/3472. Check the javac corpora and closed-core config for same--d pairs, then trace why the first source set disappears. Done means the folding decision is supported by that evidence and the two reported cases have an understood outcome.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Found on the quarkus reactor (mixed Maven log), reported by the worktree-simply session. Not needed for the campaign start; both cases are integration-test modules.

What happens: two maven-compiler-plugin javac lines with the same -d, one right after the other, come out as two source sets, the second suffixed 2. In the config only the 2 set appears under the module's prefix; where the first one went is not traced yet.

  • integration-tests/kotlin-maven-invoker/target/test-classes: test-classes2 holds [src/test/java, target/generated-test-sources/test-annotations].
  • integration-tests/grpc-stork-recovery/target/classes: main2 holds [src/main/java, target/generated-stork-sources, target/generated-sources, target/generated-sources/grpc].

Most likely a second compiler execution: an annotation-processing pass, or generated sources compiled again.

Where: CompileListToSourceSets (shared by the Java and the Kotlin/mixed routes). maddi fe1a132d7 folds kotlinc invocations of one destination (kapt + compile) in SharedDestination.foldKotlinc; javac + javac is not folded.

To decide: should two javac runs into one destination fold the same way (union of source dirs and class paths)? This changes the Java-only route too, so check the javac corpora (and the closed-core config) for same--d pairs before folding, and work out why the first set disappears.

Reproduction: laser1 ~/tmp/quarkus-mixed/compile.noargs.log, javac lines 2930/2932 and 3470/3472.

Lingua principale
Java
Stelle
1
Fork
1
Merge medio
48m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CodeLaser/maddi

Tutte le issue di CodeLaser/maddi

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.