Fix compiler-project/semantic-errors

Java 21 emits Info about annotation processing, hence we need to filter out Infos so val first is the first non-info problem
This commit is contained in:
friendseeker 2024-10-15 00:46:49 -07:00 committed by Jerry Tan
parent 6cea06da0b
commit 56f2a9a031
2 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
TaskKey[Unit]("checkJavaFailures") := {
val reporter = savedReporter.value
val ignore = (compile in Compile).failure.value
val ps = reporter.problems
val ps = reporter.problems.filter(_.severity() != xsbti.Severity.Info)
assert(!ps.isEmpty, "Failed to report any problems!")
// First error should be on a specific line/file
val first = ps(0)