[seam-issues] [JBoss JIRA] Updated: (SOLDER-14) Provide utility to check if Type is assignable to another Type
Dan Allen (JIRA)
jira-events at lists.jboss.org
Sun Dec 19 02:24:40 EST 2010
[ https://issues.jboss.org/browse/SOLDER-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Allen updated SOLDER-14:
----------------------------
Assignee: Dan Allen
Fix Version/s: 3.0.0.Beta2
Affects Version/s: 3.0.0.Beta1
Component/s: Reflections
> Provide utility to check if Type is assignable to another Type
> --------------------------------------------------------------
>
> Key: SOLDER-14
> URL: https://issues.jboss.org/browse/SOLDER-14
> Project: Seam Solder
> Issue Type: Feature Request
> Components: Reflections
> Affects Versions: 3.0.0.Beta1
> Reporter: Dan Allen
> Assignee: Dan Allen
> Priority: Minor
> Fix For: 3.0.0.Beta2
>
>
> Often times when writing an extension, you need to know if one Type is assignable from another Type. This is a more sophisticated version of Class#isAssignableFrom(Class) which takes into account paramaterized types.
> given
> parameterized type Bean<N extends Number>
> then
> type Bean<Number> is assignable from type Bean<Integer>
> One area where this is useful is when checking if a bean type is more specific than another bean type. It's not sufficient to assume the bean type is a simple class.
> Something similar to what is provided by: http://google-gson.googlecode.com/svn-history/r442/trunk/gson/src/main/java/com/google/gson/reflect/TypeToken.java
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list