jdk 7 compatibility