File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core/classfile Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class ClassfileParser(
5454 private def currentIsTopLevel (implicit ctx : Context ) = classRoot.owner is Flags .PackageClass
5555
5656 private def mismatchError (className : SimpleName ) =
57- throw new IOException (s " class file ' ${in.file.file.getAbsolutePath }' has location not matching its contents: contains class $className" )
57+ throw new IOException (s " class file ' ${in.file.canonicalPath }' has location not matching its contents: contains class $className" )
5858
5959 def run ()(implicit ctx : Context ): Option [Embedded ] = try {
6060 ctx.debuglog(" [class] >> " + classRoot.fullName)
@@ -65,7 +65,7 @@ class ClassfileParser(
6565 case e : RuntimeException =>
6666 if (ctx.debug) e.printStackTrace()
6767 throw new IOException (
68- i """ class file ${classfile.file.getAbsolutePath } is broken, reading aborted with ${e.getClass}
68+ i """ class file ${classfile.canonicalPath } is broken, reading aborted with ${e.getClass}
6969 | ${Option (e.getMessage).getOrElse(" " )}""" )
7070 }
7171
You can’t perform that action at this time.
0 commit comments