fix compile issue on openjdk6