[FYR] fix defect by JDK version