diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 4 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/UnPickler.scala | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala index b510b41c4b..5f20a72aa0 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala @@ -50,13 +50,13 @@ abstract class ClassfileParser { def parse(file: AbstractFile, root: Symbol) = try { def handleError(e: Exception) = { - if (settings.debug.value) e.printStackTrace() //debug + /*if (settings.debug.value)*/ e.printStackTrace() //debug throw new IOException("class file '" + in.file + "' is broken\n(" + { if (e.getMessage() != null) e.getMessage() else e.getClass.toString } + ")") } - assert(!busy) + assert(!busy, "internal error: illegal class file dependency") busy = true /*root match { case cs: ClassSymbol => diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/UnPickler.scala b/src/compiler/scala/tools/nsc/symtab/classfile/UnPickler.scala index a607408720..474027e7af 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/UnPickler.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/UnPickler.scala @@ -222,7 +222,7 @@ abstract class UnPickler { } sym.setFlag(flags.toLong & PickledFlags) sym.privateWithin = privateWithin - if (readIndex != end) assert(sym hasFlag (SUPERACCESSOR | PARAMACCESSOR)) + if (readIndex != end) assert(sym hasFlag (SUPERACCESSOR | PARAMACCESSOR | PROTACCESSOR), sym) if (sym hasFlag SUPERACCESSOR) assert(readIndex != end) sym.setInfo( if (readIndex != end) new LazyTypeRefAndAlias(inforef, readNat()) |