File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class ClassfileParser(
54
54
private def currentIsTopLevel (implicit ctx : Context ) = classRoot.owner is Flags .PackageClass
55
55
56
56
private def mismatchError (className : SimpleName ) =
57
- throw new IOException (s " class file ' ${in.file}' has location not matching its contents: contains class $className" )
57
+ throw new IOException (s " class file ' ${in.file.file.getAbsolutePath }' has location not matching its contents: contains class $className" )
58
58
59
59
def run ()(implicit ctx : Context ): Option [Embedded ] = try {
60
60
ctx.debuglog(" [class] >> " + classRoot.fullName)
@@ -65,7 +65,7 @@ class ClassfileParser(
65
65
case e : RuntimeException =>
66
66
if (ctx.debug) e.printStackTrace()
67
67
throw new IOException (
68
- i """ class file $classfile is broken, reading aborted with ${e.getClass}
68
+ i """ class file ${ classfile.file.getAbsolutePath} is broken, reading aborted with ${e.getClass}
69
69
| ${Option (e.getMessage).getOrElse(" " )}""" )
70
70
}
71
71
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import NameKinds._
10
10
import java .util .UUID
11
11
12
12
object TastyUnpickler {
13
- class UnpickleException (msg : String ) extends Exception (msg)
13
+ class UnpickleException (msg : String ) extends RuntimeException (msg)
14
14
15
15
abstract class SectionUnpickler [R ](val name : String ) {
16
16
def unpickle (reader : TastyReader , nameAtRef : NameTable ): R
You can’t perform that action at this time.
0 commit comments