phax / jcodemodel

A heavily extended fork of the com.sun.codemodel (from 2013/09)
Other
93 stars 34 forks source link

Add generic support to isAssignableFrom #14

Closed sviperll closed 9 years ago

sviperll commented 9 years ago

It's much more intuitive to use good old isAssignableFrom method. Correct generic handling is something I would expect from the implementation, since types in jcodemodel are not erased.

I had rewrite my isSubtypeOf function and turn it into isAssignableFrom. I've tried to test many Java's corner cases and added some tests for robustness.