With that API you get the variables, not their values... There is one trick one can do though. If you subclass a class with a generic argument you can get the value supplied to the super class. Unless the value was itself a reference to a variable in the subclass that is.
BR, John On Mon, Nov 3, 2008 at 3:45 PM, Alexey Zinger <[EMAIL PROTECTED]> wrote: > > In the discussion of the new Java decompiler that recognizes generics, the > guys seemed to be surprised that class files can retain that information and > were wondering why it's not in the reflection API. Without running a real > test to see what's actually available, the API are most certainly there: > > http://java.sun.com/javase/6/docs/api/java/lang/reflect/GenericDeclaration.html > > Alexey > 2001 Honda CBR600F4i (CCS) > 1992 Kawasaki EX500 > http://azinger.blogspot.com > http://bsheet.sourceforge.net > http://wcollage.sourceforge.net > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
