nashorn/test/script/basic/JDK-8023026.js.EXPECTED
author hannesw
Mon, 15 Sep 2014 17:51:11 +0200
changeset 26648 9a64e15eff37
parent 19469 a5d34b586cea
child 29133 1cd7d8af99ba
permissions -rw-r--r--
8056978: ClassCastException: cannot cast jdk.nashorn.internal.scripts.JO* Reviewed-by: jlaskey, sundar

iterating on an object of class [I
forEach 0
forEach 1
forEach 2
forEach 3
reduce 0 1
reduce 1 2
reduce 3 3
left sum 6
reduceRight 3 2
reduceRight 5 1
reduceRight 6 0
right sum 6
squared 0,1,4,9
iterating on an object of class java.util.ArrayList
forEach 1
forEach 3
forEach 5
forEach 7
reduce 1 3
reduce 4 5
reduce 9 7
left sum 16
reduceRight 7 5
reduceRight 12 3
reduceRight 15 1
right sum 16
squared 1,9,25,49
iterating on [object Array]
forEach 2
forEach 4
forEach 6
forEach 8
reduce 2 4
reduce 6 6
reduce 12 8
left sum 20
reduceRight 8 6
reduceRight 14 4
reduceRight 18 2
right sum 20
squared 4,16,36,64