[3064] in java-interest

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

another compiler bug -- specialization of abstract classes

daemon@ATHENA.MIT.EDU (Andruid Kerne)
Sat Oct 28 06:09:37 1995

Date: Sat, 28 Oct 95 04:27:45 EDT
From: andruid@SPARKY.CS.NYU.EDU (Andruid Kerne)
To: java-interest@java.sun.com

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

public abstract class Geometry
{
	// various other code

   public abstract Geometry minus(Geometry vTrans);
}

public class VectorFloat
extends Geometry
{
	// various other code
   public VectorFloat minus(VectorFloat vTrans)
     {
	// various other code
     }
}

-
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