[1168] in java-interest

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

Re: What is this error?

daemon@ATHENA.MIT.EDU (Peter Karlsson - Sun Sweden)
Fri Aug 25 08:48:00 1995

Date: Fri, 25 Aug 1995 11:46:19 +0200
From: Peter.Karlsson@Sweden.Sun.COM (Peter Karlsson - Sun Sweden)
To: java-interest@java.Eng.Sun.COM, sbk@netcom.com

Hi !!

I hade something like this. I think it's the null you have as the third argument to super since that are a boolean it has to be true or false and can't be null.

/peter
> % uname -a
> SunOS mizar 5.4 generic sun4m sparc
> % cat a.java
> import awt.*;
> import java.lang.*;
>  
> 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)
>          ^
> 1 error
> % cat b.java
> import awt.*;
> import java.lang.*;
>  
> public class b extends Frame
> {
>   public b(WServer ws)
>     {
>       super(ws, true, null, 100, 100, Color.lightGray);
>       System.out.println("Starting");
>     }
> }
> % javac b.java
> % 
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to java-interest-request@java.sun.com
> 
-
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