add type parameters to make javac happy
Merge pull request #29 from jasonnn/compile-fail

add type parameters to make javac happy