corrected generic type failure in jdk7