This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCJ and generics


Alan Eliasen wrote:

Hmmmm... yes, in a way, that's right.  However, for example, in one
case I listed,

public class BasicObjectEnumeration<T>
implements java.util.Enumeration<String>
[...]
Decompilation shows that one of these methods is just a bridge that
delegates to the other:


Exactly.

The Java spec (section 8.4.2) indicates that:


That's the JVM spec that count here, not the language spec.

or
that the return type can be considered in some way to be part of the
signature.

Exactly, the return type is always part of the signature at the classfile level.
Cedric




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]