fix < jdk 8 issue