Skip to content

Commit 6d4a98c

Browse files
oderskyfelixmulder
authored andcommitted
More info when unpickling fails
1 parent 473230c commit 6d4a98c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
555555
val tp = readType()
556556
val lazyAnnotTree = readLater(end, rdr => ctx => rdr.readTerm()(ctx))
557557
annots += Annotation.deferredSymAndTree(tp.typeSymbol, _ => lazyAnnotTree.complete)
558-
case _ =>
559-
assert(false, s"illegal modifier tag at $currentAddr")
558+
case tag =>
559+
assert(false, s"illegal modifier tag $tag at $currentAddr, end = $end")
560560
}
561561
}
562562
(flags, annots.toList, privateWithin)

compiler/test/dotc/tests.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class tests extends CompilerTest {
5050
|Where these all contain locations, except extras which is a comma
5151
|separated list of jars.
5252
|
53-
|When compiling with eclipse, you need the sbt-interfaces jar, but
53+
|When compiling with eclipse, you need the sbt-interfaces jar, put
5454
|it in extras."""
5555
)
5656
file.getAbsolutePath
@@ -349,10 +349,6 @@ class tests extends CompilerTest {
349349
@Test def tasty_tests = compileDir(testsDir, "tasty", testPickling)
350350

351351
@Test def tasty_bootstrap = {
352-
val f = new JFile(getClass.getProtectionDomain.getCodeSource.getLocation.getPath)
353-
println(f)
354-
println(System.getProperty("java.class.path"))
355-
356352
val opt = List("-priorityclasspath", defaultOutputDir, "-Ylog-classpath")
357353
// first compile dotty
358354
compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant", "-strict"))(allowDeepSubtypes)

0 commit comments

Comments
 (0)