Skip to content

Commit

Permalink
Remove dead code from ClassfileParser (#17595)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter authored May 26, 2023
2 parents 0da4308 + be8d626 commit b29740d
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 b29740d

Please sign in to comment.