Skip to content

Commit

Permalink
Merge pull request #9755 from jjudd/tasty-uuid-warning-to-error
Browse files Browse the repository at this point in the history
Fix #12459: Warn instead of error if TASTy is not in sync with classfile
  • Loading branch information
lrytz committed Sep 14, 2021
2 parents 7247dfe + 829163c commit 7d7daa6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,12 @@ abstract class ClassfileParser(reader: ReusableInstance[ReusableDataReader]) {
val expectedUUID = new UUID(reader.readUncompressedLong(), reader.readUncompressedLong())
val tastyUUID = new TastyHeaderUnpickler(TASTYBytes).readHeader()
if (expectedUUID != tastyUUID) {
reporter.error(NoPosition, s"Tasty UUID ($tastyUUID) file did not correspond the tasty UUID ($expectedUUID) declared in the classfile $file.")
loaders.warning(
NoPosition,
s"$file is out of sync with its TASTy file. Loaded TASTy file. Try cleaning the project to fix this issue",
WarningCategory.Other,
clazz.fullNameString
)
}
TASTYBytes
}
Expand Down

0 comments on commit 7d7daa6

Please sign in to comment.