[1165] in java-interest

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

Re: What is this error?

daemon@ATHENA.MIT.EDU (Jeremy Fitzhardinge)
Fri Aug 25 06:44:12 1995

From: "Jeremy Fitzhardinge" <jeremy@suede.sw.oz.au>
Date: Fri, 25 Aug 1995 17:38:23 -0500
In-Reply-To: sbk@netcom.com
        "What is this error?" (Aug 24,  3:52pm)
To: sbk@netcom.com, java-interest@java.sun.com

On Aug 24,  3:52pm, sbk@netcom.com wrote:
> Subject: What is this error?
> I don't understand this error, what am I doing wrong? This is the alpha
> 3 version.
>[...]
> public class a extends Frame
> {
>   public a(WServer ws)
>     {
>       System.out.println("Starting");
>       super(ws, true, null, 100, 100, Color.lightGray);
>     }
> }
>
> % javac a.java
> a.java:6: No constructor matching Frame() found in class awt.Frame.
>   public a(WServer ws)

Java requires the call to a superclass constructor to be the first thing in
the constructor, if it's present at all.  This makes sense when you think
that you have you construct the basic parts of your own class before you do
the derived parts. The error message could be better.

	J
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

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