Skip to content

Commit

Permalink
tests: filter out java.lang.classfile for JDK 22
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek authored and tgodzik committed Apr 12, 2024
1 parent 76407ab commit 618d31e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cross/src/main/scala/tests/BaseCompletionSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ abstract class BaseCompletionSuite extends BasePCSuite {
result
}

// NOTE: this filters out things from `java.lang.classfile` which was added in JDK 22
private def getItems(
original: String,
filename: String = "A.scala"
Expand All @@ -49,6 +50,7 @@ abstract class BaseCompletionSuite extends BasePCSuite {
)
)
result.getItems.asScala
.filterNot(item => item.getLabel().contains("- java.lang.classfile"))
.sortBy(item => Option(item.getSortText).getOrElse(item.getLabel()))
.toSeq
}
Expand Down

0 comments on commit 618d31e

Please sign in to comment.