fix compile error with jdk1.6