Skip to content

Commit

Permalink
fix zinc binary dep for java internal classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jilen committed Jun 23, 2022
1 parent 160b658 commit 862e366
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions scalalib/worker/src/mill/scalalib/worker/MockedLookup.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ case class MockedLookup(am: VirtualFile => Optional[CompileAnalysis])
override def analysis(classpathEntry: VirtualFile): Optional[CompileAnalysis] =
am(classpathEntry)

override def definesClass(classpathEntry: VirtualFile): DefinesClass =
Locate.definesClass(classpathEntry)
override def definesClass(classpathEntry: VirtualFile): DefinesClass = {
if (classpathEntry.name.toString != "rt.jar")
Locate.definesClass(classpathEntry)
else false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class ZincWorkerImpl(

val store = FileAnalysisStore.binary(zincFile.toIO)

val converter = PlainVirtualFileConverter.converter
val converter = MappedFileConverter.empty
val classpath = (compileClasspath.iterator ++ Some(classesDir))
.map(path => converter.toVirtualFile(path.toNIO))
.toArray
Expand Down

0 comments on commit 862e366

Please sign in to comment.