commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: [all] Generics and Return Type?
Date Wed, 09 Apr 2008 21:06:01 GMT

--- James Carman <james@carmanconsulting.com> wrote:

> Does anyone have code that can take care of this
> situation:
> 
> List<String> strings = new ArrayList<String>();
> 
> Class returnType = getReturnType(strings.getClass(),
> "get", int.class);
> 
> I want the "returnType" to be java.lang.String. 
> Does anyone have code
> that would return that?  Is it possible?

I definitely hope there is a way to do this, Antonio's
post notwithstanding.  I -still- haven't embraced
generics yet, but does this [1] link help?

-Matt

http://forum.java.sun.com/thread.jspa?threadID=535168&range=15&start=75&forumID=316

> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@commons.apache.org
> For additional commands, e-mail:
> dev-help@commons.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message