[newbie] ClassVisitor.visit() and genericized interfaces

Julius Davies <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <CANNF_P3Xq8YY+-u3GZFHFya3=vnLXw0sopYD67T1GMS_B+9iYg@mail.gmail.com>
Hi,

For my project I need to figure out exactly what interfaces a class
implements, including the generics, should any of the interfaces be
generic.  For example, I have a class that looks like this:

---
import java.util.Collection;
public abstract class C implements Collection<Number> {}
---

When I "visit" it I only see "Collection" in the String[] interfaces.
I do not see the generic <Number> alongside.  Am I doing something
wrong?   ClassReader.getInterfaces() is also not able to help me.


I'm using this method in ClassVisitor:

public void visit(int version, int access, String name, String sig,
String superName, String[] interfaces)




-- 
yours,

Julius Davies
250-592-2284 (Home)

$ sudo apt-get install cowsay
$ echo "Moo." | cowsay | cowsay -n | cowsay -n
http://juliusdavies.ca/cowsay/
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.