[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.jdt] Generic method signatures
|
- From: ludwig@xxxxxxxxx (Dirk Ludwig)
- Date: Wed, 1 Aug 2007 13:15:16 +0000 (UTC)
- Newsgroups: eclipse.tools.jdt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hello,
I have a question regarding eclipse method signatures. When I retrieve the
signature of the method
public <K,V> Map<K,V> myMethod() {
return null;
}
via IMethod's getSignature() method, I get the following signature:
()QMap<QK;QV;>;
In this case the type variables (K and V) are represented as unresolved
classes in the signature. Is this the supposed behaviour or is it a bug? I
would expect that the type variables had been represented as type
variables (i.e. with a "T" prefix, not with a "Q" prefix). At least this
is the representation contained in the bytecode:
()Ljava/util/Map<TK;TV;>;
If this is not a bug: How can i distinguish a type variable from an
unresolved class within a method signature?
If this _is_ a bug: Is there any workaround?
Regards,
Dirk