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

Abierto
#222 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, kotlin

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
1
Forks
1
Merge medio
48 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CodeLaser/maddi

Todos los issues de CodeLaser/maddi

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.