Skip to content

Commit a45f57b

Browse files
committed
Fix #4207: Read whole zipfile before closing
1 parent 16ce7e4 commit a45f57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class InteractiveDriver(val settings: List[String]) extends Driver {
132132

133133
try {
134134
for {
135-
entry <- zipFile.stream.iterator().asScala
135+
entry <- zipFile.stream.toArray((size: Int) => new Array[ZipEntry](size))
136136
name = entry.getName
137137
tastySuffix <- tastySuffixes
138138
if name.endsWith(tastySuffix)

0 commit comments

Comments
 (0)