summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2008-08-26 08:10:38 +0000
committerIulian Dragos <jaguarul@gmail.com>2008-08-26 08:10:38 +0000
commitb1e5ba0eef2de2c2d3b1590cedc9925b2470651f (patch)
tree640f678c3a4cb869d2d18e3ce26ece2940ab962c /src
parent73021214bcdec9e99551e36d33d5d6ed8d39a8f0 (diff)
downloadscala-b1e5ba0eef2de2c2d3b1590cedc9925b2470651f.tar.gz
scala-b1e5ba0eef2de2c2d3b1590cedc9925b2470651f.tar.bz2
scala-b1e5ba0eef2de2c2d3b1590cedc9925b2470651f.zip
Fixed NPE on Windows, needs a new starr to fix ...
Fixed NPE on Windows, needs a new starr to fix the build on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
index cb2fa196da..f469477d72 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
@@ -831,7 +831,9 @@ abstract class ClassfileParser {
for (entry <- innerClasses.values) {
// create a new class member for immediate inner classes
if (entry.outerName == externalName) {
- val file = global.classPath.lookupPath(entry.externalName.replace('.', '/').toString, false)
+ val file = global.classPath.lookupPath(
+ entry.externalName.replace('.', java.io.File.separatorChar).toString, false)
+ assert(file ne null, entry.externalName)
enterClassAndModule(entry.originalName, new global.loaders.ClassfileLoader(file, null, null), entry.jflags)
}
}