We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd042ac commit e39b726Copy full SHA for e39b726
compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
@@ -788,7 +788,7 @@ class ClassfileParser(
788
if (scan(tpnme.TASTYATTR)) {
789
val attrLen = in.nextInt
790
val bytes = in.nextBytes(attrLen)
791
- if (bytes.length == 16) { // A tasty attribute with that has only a UUID implies the existence of the .tasty file
+ if (attrLen == 16) { // A tasty attribute with that has only a UUID (16 bytes) implies the existence of the .tasty file
792
val tastyBytes: Array[Byte] = classfile.underlyingSource match { // TODO: simplify when #3552 is fixed
793
case None =>
794
ctx.error("Could not load TASTY from .tasty for virtual file " + classfile)
0 commit comments