test/script/basic/javaclassoverrides.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 719
11b83c913cca
child 952
6d5471a497fb
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

attila@175 1 R1.run() invoked
attila@175 2 R2.run() invoked
attila@175 3 r3.run() invoked
attila@719 4 r1.class !== r2.class: true
attila@719 5 r2.class !== r3.class: true
attila@175 6 Got exception: java.lang.UnsupportedOperationException
attila@175 7 Got exception: java.lang.UnsupportedOperationException
attila@175 8 (new ExtendsList).size() = 0
attila@719 9 (new (Java.extend(ExtendsList)){}).size() = 0

mercurial