fix jdk8 compile error