diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-08-26 08:10:38 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-08-26 08:10:38 +0000 |
commit | b1e5ba0eef2de2c2d3b1590cedc9925b2470651f (patch) | |
tree | 640f678c3a4cb869d2d18e3ce26ece2940ab962c | |
parent | 73021214bcdec9e99551e36d33d5d6ed8d39a8f0 (diff) | |
download | scala-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.
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 4 |
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) } } |