Reflecting generics
- From: Domagoj Klepac <no.spam.sent.2.domchi@xxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 14:57:36 +0200
I'm wondering if this is possible - and after much digging, it seems
that it isn't. I have the following piece of code:
ArrayList<String> stringArray = new ArrayList<String>();
Class c = stringArray.getClass();
Is it possible to, somehow, get "java.lang.String" from c?
Or is that information lost after compiling?
Domchi
.
- Follow-Ups:
- Re: Reflecting generics
- From: Roedy Green
- Re: Reflecting generics
- From: Timbo
- Re: Reflecting generics
- From: Adam Maass
- Re: Reflecting generics
- Prev by Date: Re: Cannot create Java VM on Suse 64 with IBM JVM
- Next by Date: Re: Don't you need an XML Virtual Machine ?
- Previous by thread: Why is JAR so slow?
- Next by thread: Re: Reflecting generics
- Index(es):