Skip to content

Commit be8d626

Browse files
committed
Remove dead code from ClassfileParser
1 parent d077bbd commit be8d626

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,9 @@ class ClassfileParser(
991991
return unpickleTASTY(tastyBytes)
992992
}
993993
}
994-
else return unpickleTASTY(bytes)
994+
else
995+
// Before 3.0.0 we had a mode where we could embed the TASTY bytes in the classfile. This has not been supported in any stable release.
996+
report.error(s"Found a TASTY attribute with a length different from 16 in $classfile. This is likely a bug in the compiler. Please report.", NoSourcePosition)
995997
}
996998

997999
if scan(tpnme.ScalaATTR) && !scalaUnpickleWhitelist.contains(classRoot.name)

0 commit comments

Comments
 (0)