Skip to content

Commit

Permalink
Merge pull request #765 from basil/JENKINS-71818
Browse files Browse the repository at this point in the history
[JENKINS-71818] `CpsTransformerTest` fails on Java 21
  • Loading branch information
jglick committed Aug 16, 2023
2 parents 1917e26 + 2b82cda commit 6d35b4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ public void exceptionFromNonCpsCodeShouldBeCaughtByCatchBlockInCpsCode() throws
"}\n");
assertThat(message, anyOf(
equalTo("String index out of range: -2"), // Before Java 14
equalTo("begin 5, end 3, length 3"))); // Later versions
equalTo("begin 5, end 3, length 3"), // Before Java 18
equalTo("Range [5, 3) out of bounds for length 3"))); // Later versions
}

/**
Expand Down

0 comments on commit 6d35b4e

Please sign in to comment.