I've written a small utility library that provides methods to work with Types, specifically it contains such a method isAssignable(Type supertype, Type type) that should satisfy your requirements.
I've been considering open-sourcing it so would be happy to do so if you were interested? Cheers, Mark 2009/1/29 Emmanuel Bernard <emman...@hibernate.org>: > Specifically a routine like > boolean isSuperType(Type super, Type, sub); > note Type, not Class<?> > > On Jan 28, 2009, at 21:22, Emmanuel Bernard wrote: > > http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.10 > > Subtyping > > I am looking for an ASL 2 / BSD implementation of the subtyping resolution > algorithm in Java. > > I am thinking Harmony might have one. > > Anybody knows? > > _______________________________________________ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev > > > _______________________________________________ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev > > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev