From d44eb20b8361fdce92496e3f62a8b9d94d93baab Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 22 Mar 2017 11:24:19 +0100 Subject: Deug info in classfile parser --- .../src/dotty/tools/dotc/core/classfile/ClassfileParser.scala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala') 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() -- cgit v1.2.3