Compiler error fix for Java 8 specific tests on e37