sbt / zinc

Scala incremental compiler library, used by sbt and other build tools
Apache License 2.0
333 stars 118 forks source link

[2.x] Fix analysis of Java compilation to jar #1371

Closed adpi2 closed 1 month ago

adpi2 commented 2 months ago

The goal of this PR is to fix the java-mixed test with straight-to-JAR compilation enabled. The difficulty here was to remap class files from the previous JAR (Scala compilation) to class files in the output JAR.

But most of the PR is a refactoring of JavaAnalyze to reduce nesting and parameter passing.

This will be needed by https://github.com/sbt/sbt/pull/7592

adpi2 commented 2 months ago

Actually I have the same or similar issue with JavaThenScala so I am going to fix it too.

adpi2 commented 1 month ago

Superseded by #1376