Skip to content

Commit

Permalink
Backport "Remove dead code from ClassfileParser" to LTS (#18945)
Browse files Browse the repository at this point in the history
Backports #17595 to the LTS branch.

PR submitted by the release tooling.
  • Loading branch information
Kordyjan authored Nov 17, 2023
2 parents e5032e0 + d22f8db commit 8c53f4d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,9 @@ class ClassfileParser(
return unpickleTASTY(tastyBytes)
}
}
else return unpickleTASTY(bytes)
else
// 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.
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)
}

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

0 comments on commit 8c53f4d

Please sign in to comment.