The first compilation error is copied into the bug report.
I've actually only tested with 8u20 (which doesn't work) and 8u74
(which does work) but the javac errors are similar to the ones in
"8087115: Due to a javac type inference issue, sjavac doesn't compile
with 8u31" (https://bugs.openjdk.java.net/browse/JDK-8087115) which
mentions 8u40 as the first version which correctly handles such code.