fix jdk1.7 issue