🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18198

super() causing grief

#18198
From: Peter Jacobs
Date: Mon, 27 Jul 1998 00:00
30 lines
1444 bytes
According to all the documentation I can find, the following code should
work:

    public MySubClass(BufferedReader file, Session session) throws
Exception {

	// MySubClass specific code cut for clarity

        super(file, session);
    }

On first compilation JBuilder complained that the super class was
lacking a default constructor; which is fair enough as that is the
implicit first line of any sub-class constructor.  But it will not
accept "super(file, session)" giving "Error (37): method required but
value found" regardless of where in the code I place that line.  The
matching constructor does exist and does work.

As an experiment I placed "super()" as the first line of the code - and
got the same error for that line too: deep weirdness.

Am I missing something or is this a bug???


-- 
Peter Jacobs
Principal Software Engineer
Computerised Document Control Ltd
Email : peterj@docctrl.com
WWW : http://www.docctrl.com
Technical Details
Message-ID: <35BCDD55.AA65A23E@docctrl.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,47975f63c94188a0,start
X-Google-Attributes: gidf74b3,public
From: Peter Jacobs <peterj@docctrl.com>
Subject: super() causing grief
Date: 1998/07/27
Message-ID: <35BCDD55.AA65A23E@docctrl.com>
X-Deja-AN: 375412655
Content-Transfer-Encoding: 7bit
Organization: Computerised Document Control
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language