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] |
Cedric Berger wrote:It's in public review, but I don't think that part of the specs is controversial.
I think generics define multiple functions with the same argumentsUnfortunately, the compiler gets partway through (with lots of warnings) and then gives the following errors like:
c:\DOCUME~1\eliasen\LOCALS~1\Temp/ccusaaaa.s: Assembler messages: c:\DOCUME~1\eliasen\LOCALS~1\Temp/ccusaaaa.s:4439: Error: symbol `__ZN5frink5units22BasicObjectEnumeration11nextElementEv' is already defined
but different return values. Could that be the problem?
That could most likely be the case, especially considering the error messages.
Is this the way generics would be handled in JDK 1.5?
I mean, GJ was a proposal - has it been accepted
as the way of doing things?
class C<A> { abstract A next(); } class D extends C<String> { String next() { return ""; } }
This will be translated to: class C { abstract Object next(); } class D extends C<String> { String next/*1*/() { return ""; } Object next/*2*/() { return next/*1*/(); } }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |