summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-11-13 23:05:51 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-11-13 23:05:51 +0000
commit6866d592b9355551b2d3d337081fd1a849f852d1 (patch)
treea271cb718b845cad1ca6d1faec136b1f8e78110e /src
parentf20f480fca746286135bb0c40a34f992fca992a5 (diff)
downloadscala-6866d592b9355551b2d3d337081fd1a849f852d1.tar.gz
scala-6866d592b9355551b2d3d337081fd1a849f852d1.tar.bz2
scala-6866d592b9355551b2d3d337081fd1a849f852d1.zip
Applied Paul's patch for #1380, moved test out ...
Applied Paul's patch for #1380, moved test out of pending.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/io/ZipArchive.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/io/ZipArchive.scala b/src/compiler/scala/tools/nsc/io/ZipArchive.scala
index dacfc0dd79..aa10febce5 100644
--- a/src/compiler/scala/tools/nsc/io/ZipArchive.scala
+++ b/src/compiler/scala/tools/nsc/io/ZipArchive.scala
@@ -118,8 +118,9 @@ final class ZipArchive(file: File, val archive: ZipFile) extends PlainFile(file)
this.toString() + " - " + path);
if (entry.isDirectory()) {
val dir: DirEntry = getDir(dirs, path)
- assert(dir.entry eq null, this.toString() + " - " + path)
- dir.entry = entry
+ // this assertion causes an unnecessary bomb if a directory is twice listed in the jar
+ // assert(dir.entry eq null, this.toString() + " - " + path)
+ if (dir.entry eq null) dir.entry = entry
} else {
val index = path.lastIndexOf('/')
val name = if (index < 0) path else path.substring(index + 1)