test/script/basic/list.js.EXPECTED

Tue, 01 Sep 2015 18:28:11 +0530

author
sundar
date
Tue, 01 Sep 2015 18:28:11 +0530
changeset 1521
eed10d5bf2f4
parent 1126
0a5ec176e9d8
child 1205
4112748288bb
permissions
-rw-r--r--

8068901: Surprising behavior with more than one functional interface on a class
8068903: Can't invoke vararg @FunctionalInterface methods
Reviewed-by: attila, hannesw

     1 l.class.name=java.util.ArrayList
     2 l.length=2
     3 l.size()=2
     4 l[0]=foo
     5 l[1]=bar
     6 --for each begin--
     7 foo
     8 bar
     9 --for each end--
    10 l[0]=foo
    11 l[1]=a
    12 l[0.9]=null
    13 l['blah']=undefined
    14 l[size_name]()=2
    15 java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
    16 java.lang.IndexOutOfBoundsException: Index: Infinity, Size: 2
    17 java.lang.IndexOutOfBoundsException: Index: -Infinity, Size: 2

mercurial