Re: Re: Problems getting generic signatures of generated classes to show via Reflection

Tatu Saloranta <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
On Wed, Jul 28, 2010 at 5:56 AM, Eugene Kuleshov <[email protected]> wrote:
>
>  Worked for me. The following code prints java.util.List<java.lang.String>
>
>   final byte[] buff = TestDump.dump();
>   Class c = new ClassLoader() { Class c = defineClass("test.Test", buff, 0,
> buff.length); }.c;
>     Method[] methods = c.getDeclaredMethods();
>   System.err.println(methods[0].getGenericReturnType());
>
>  where TestDump class were generated by ASMifier from the following source
> code compiled with Java 1.5:

So does this (ASMifierClassVisitor?) generate ASM ClassWriter calls to
re-generate class in question?
If so it does sound like my code was missing some important part... I
will go and see how I can reproduce results and hopefully from that
see what I need to change.

Thank you for quick reply,

-+ Tatu +-
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.