Skip to content

Commit fa84627

Browse files
Merge pull request #9125 from dotty-staging/fix-#8839
Fix #8839: Only warn if TASTy is not in sync with classfile
2 parents b301e4c + 169d021 commit fa84627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ class ClassfileParser(
827827
val expectedUUID = new UUID(reader.readUncompressedLong(), reader.readUncompressedLong())
828828
val tastyUUID = new TastyHeaderUnpickler(tastyBytes).readHeader()
829829
if (expectedUUID != tastyUUID)
830-
ctx.error(s"Tasty UUID ($tastyUUID) file did not correspond the tasty UUID ($expectedUUID) declared in the classfile $classfile.")
830+
ctx.warning(s"$classfile is out of sync with its TASTy file. Loaded TASTy file. Try cleaning the project to fix this issue", NoSourcePosition)
831831
return unpickleTASTY(tastyBytes)
832832
}
833833
}

0 commit comments

Comments
 (0)