Tim,
I guess this period is too much
super.(host,MetaType,TemplateType);
^
It should be
super(host,MetaType,TemplateType);
And that's exactly what the compiler says: after a period it expects an
identifier either a field or a method.
Rudi
-----Original Message-----
From: Tim Reilly <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, July 27, 1999 7:59 AM
Subject: Constructor/Inheritance wierdness
>Hi, hopefully this one's a quickie. I'm using blackdown jdk 117v3 and
>getting the following error message when compiling my TemplateList class.
>
>According the the Java 1.1 specification I should be able to call the
>superclasses' constructor with this syntax. What am I doing wrong?
>
>Thanks,
>
>-Tim
>
>
>#####
># Compiler error message
>#####
>
>TemplateList.java:29: Identifier expected.
> super.(host,MetaType,TemplateType);
> ^
>#####
># Snippet of TemplateList class declaration ( generates above error on
># compiliation )
>#####
>
>public class TemplateList extends Template {
>
> public TemplateList (String host, String MetaType, String TemplateType)
> {
>
> super.(host,MetaType,TemplateType);
> this.iStart = 1;
> this.iStop = 1 + config.iDefaultRecords;
> }
>
>}
>
>#####
># Snippet of Template class declaration ( compiles OK)
>#####
>
>public class Template {
>
> public Template (String Host, String MetaType, String TemplateType) {
>
>
> }
>
>}
>
>
>----------------------------------------------------------------------
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
>
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]