You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -991,7 +991,9 @@ class ClassfileParser(
991
991
return unpickleTASTY(tastyBytes)
992
992
}
993
993
}
994
-
elsereturn 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)
995
997
}
996
998
997
999
if scan(tpnme.ScalaATTR) &&!scalaUnpickleWhitelist.contains(classRoot.name)
0 commit comments