Mercurial > hg > openjdk > aarch64-port > jdk
changeset 8027:462c5589bc1a
8024182: test/java/util/Arrays/SetAllTest.java fails to compile due to recent compiler changes
Summary: Use explicit lambda due to javac simplfying rules for overload resolution with implicit lambdas
Reviewed-by: alanb, mduigou
author | psandoz |
---|---|
date | Mon, 12 Aug 2013 12:22:10 +0200 |
parents | 4bdbd1fabea4 |
children | d62c911aebbb |
files | test/java/util/Arrays/SetAllTest.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/java/util/Arrays/SetAllTest.java Tue Sep 03 21:42:56 2013 -0700 +++ b/test/java/util/Arrays/SetAllTest.java Mon Aug 12 12:22:10 2013 +0200 @@ -167,13 +167,13 @@ 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