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

オープン
#222 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, kotlin

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Java
スター
1
フォーク
1
平均マージ
48分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeLaser/maddi のほかの issue

CodeLaser/maddi の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。