Fix Java8 compile error