Skip to content

Commit 7703493

Browse files
authored
Merge pull request #2915 from dotty-staging/improve-#2506
Alternative fix for #2506 that does not force dirs
2 parents b7cafd8 + 4d354a7 commit 7703493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/io/ZipArchive.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ final class FileZipArchive(file: JFile) extends ZipArchive(file) {
149149
override def sizeOption: Option[Int] = Some(zipEntry.getSize.toInt)
150150
}
151151

152-
val (root, allDirs) = {
152+
@volatile lazy val (root, allDirs) = {
153153
val root = new DirEntry("/")
154154
val dirs = mutable.HashMap[String, DirEntry]("/" -> root)
155155
val zipFile = openZipFile()

0 commit comments

Comments
 (0)