[3066] in java-interest

home help back first fref pref prev next nref lref last post

Re: another compiler bug -- specialization of abstract classes

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Sat Oct 28 15:45:19 1995

Date: Sat, 28 Oct 1995 10:28:39 -0700
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: andruid@SPARKY.CS.NYU.EDU
Cc: java-interest@java.Eng.Sun.COM


Hi Andruid,

> It seems that the compiler rejects this because the argument is
> declared as the abstract class.  This looks wrong.

We don't support co-variant subtyping of return types in overriding
methods. Methods only override each other if the signatures are identical!

Have fun,

	Arthur van Hoff
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post