Skip to content

Commit 2f1a794

Browse files
oderskyfelixmulder
authored andcommitted
More info when unpickling fails
1 parent 473230c commit 2f1a794

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
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: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ class tests extends CompilerTest {
4747
| - DOTTY_INTERFACES
4848
| - DOTTY_EXTRAS
4949
|
50-
|Where these all contain locations, except extras which is a comma
50+
|Where these all contain locations, except extras which is a colon
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)