fix generic while set jdk to 1.7