[fix] compilation problem on java 1.7