summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-10-06 06:26:33 +0000
committerpaltherr <paltherr@epfl.ch>2003-10-06 06:26:33 +0000
commit8870ac88ff96c1cee59fddde38076ed4e86b0f6e (patch)
treecc196a0cfb8914d9e10970dd0d1a3e542ce82295 /sources
parent5718f84fddb1310cc77cce49b7ccfbf844047248 (diff)
downloadscala-8870ac88ff96c1cee59fddde38076ed4e86b0f6e.tar.gz
scala-8870ac88ff96c1cee59fddde38076ed4e86b0f6e.tar.bz2
scala-8870ac88ff96c1cee59fddde38076ed4e86b0f6e.zip
- Replaced test of name length by call to isRoot
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/symtab/classfile/PackageParser.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/scalac/symtab/classfile/PackageParser.java b/sources/scalac/symtab/classfile/PackageParser.java
index 842cbd3870..544db13092 100644
--- a/sources/scalac/symtab/classfile/PackageParser.java
+++ b/sources/scalac/symtab/classfile/PackageParser.java
@@ -40,10 +40,9 @@ public class PackageParser extends Type.LazyType {
long msec = System.currentTimeMillis();
Scope members = new Scope();
String dirname = null;
- Name name = p.fullName();
HashMap/*<Symbol, AbstractFile>*/ symFile = new HashMap();
- if (name.length() != 0) {
- dirname = SourceRepresentation.externalizeFileName(name);
+ if (!p.isRoot()) {
+ dirname = SourceRepresentation.externalizeFileName(p.fullName());
if (!dirname.endsWith("/"))
dirname += "/";
}