fix compile error for jdk8