aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-08-20 14:34:55 +0200
committerMartin Odersky <odersky@gmail.com>2013-08-20 14:34:55 +0200
commit7fb9cd47f3a5ce10e1001b9a9aa5672dc38bf16e (patch)
tree260eb25604162d4d47de2f3a62f1823bc4e22a18 /src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
parentb048b321f5f700804ce4e3e67720eb65297eaf39 (diff)
downloaddotty-7fb9cd47f3a5ce10e1001b9a9aa5672dc38bf16e.tar.gz
dotty-7fb9cd47f3a5ce10e1001b9a9aa5672dc38bf16e.tar.bz2
dotty-7fb9cd47f3a5ce10e1001b9a9aa5672dc38bf16e.zip
Fixes handling of modules in namer.
Now we make sure we keep mode invariants at all times.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/ClassfileParser.scala')
-rw-r--r--src/dotty/tools/dotc/core/pickling/ClassfileParser.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
index ce26c604e..344508c11 100644
--- a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
+++ b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
@@ -794,7 +794,7 @@ class ClassfileParser(
val start = starts(index)
if (in.buf(start).toInt != CONSTANT_CLASS) errorBadTag(start)
val name = getExternalName(in.getChar(start + 1))
- if (name.isModuleClassName) c = cctx.requiredModule(name.stripModuleClassSuffix.asTermName)
+ if (name.isModuleClassName) c = cctx.requiredModule(name.sourceModuleName)
else c = classNameToSymbol(name)
values(index) = c
}