[jboss-user] [Javassist user questions] - Re: Altering Generics Information of Methods using Javassist

2007-12-20 Thread SimonRinguette
I have done further reading on how this is implemented by the compiler and finally found out the answer I was looking for. You can defenitely do that with javaassist. The key class is javassist.bytecode.SignatureAttribute. >From a CtMethod, i've obtained the methodInfo I add a Signature attribu

[jboss-user] [Javassist user questions] - Altering Generics Information of Methods using Javassist

2007-12-17 Thread SimonRinguette
I have done numerous things using javassist but there is one thing I would really love to do and I have yet to find how so I'm hoping for some pointers. I would like to change methods return types from List to List. While I understand that this would not change the method bytecode (erasure techn