corrected generic type failure in jdk7 in dynect