aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-22 11:24:19 +0100
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:10 +0200
commitd44eb20b8361fdce92496e3f62a8b9d94d93baab (patch)
tree343ef345b15c8aa484901c612342b63d7da59798
parent88171be0c4aeb7e9ea0f858929a26160badf688c (diff)
downloaddotty-d44eb20b8361fdce92496e3f62a8b9d94d93baab.tar.gz
dotty-d44eb20b8361fdce92496e3f62a8b9d94d93baab.tar.bz2
dotty-d44eb20b8361fdce92496e3f62a8b9d94d93baab.zip
Deug info in classfile parser
-rw-r--r--compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala9
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala b/compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
index 1e419a72b..a0e4cc62b 100644
--- a/compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
+++ b/compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
@@ -25,6 +25,8 @@ class ClassfileParser(
classRoot: ClassDenotation,
moduleRoot: ClassDenotation)(ictx: Context) {
+ //println(s"parsing ${classRoot.name.debugString} ${moduleRoot.name.debugString}")
+
import ClassfileConstants._
import ClassfileParser._
@@ -91,7 +93,12 @@ class ClassfileParser(
if (currentIsTopLevel) {
val c = pool.getClassSymbol(nameIdx)
- if (c != classRoot.symbol) mismatchError(c)
+ if (c != classRoot.symbol) {
+ println(currentClassName.debugString) // TODO: remove
+ println(c.name.debugString)
+ println(classRoot.symbol.name.debugString)
+ mismatchError(c)
+ }
}
addEnclosingTParams()