8024182: test/java/util/Arrays/SetAllTest.java fails to compile due to recent compiler changes
Use explicit lambda due to javac simplfying rules for overload resolution with implicit lambdas Reviewed-by: alanb, mduigou
This commit is contained in:
parent
59440ee0be
commit
1f2ba9f228
@ -167,13 +167,13 @@ public class SetAllTest {
|
||||
public void testStringSetNulls() {
|
||||
String[] ar = new String[2];
|
||||
try {
|
||||
Arrays.setAll(null, i -> "X");
|
||||
Arrays.setAll(null, (IntFunction<String>) i -> "X");
|
||||
fail("Arrays.setAll(null, foo) should throw NPE");
|
||||
} catch (NullPointerException npe) {
|
||||
// expected
|
||||
}
|
||||
try {
|
||||
Arrays.parallelSetAll(null, i -> "X");
|
||||
Arrays.parallelSetAll(null, (IntFunction<String>) i -> "X");
|
||||
fail("Arrays.parallelSetAll(null, foo) should throw NPE");
|
||||
} catch (NullPointerException npe) {
|
||||
// expected
|
||||
|
Loading…
x
Reference in New Issue
Block a user