🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Nested Class structure

#660
From: Eric
Date: Mon, 03 Jan 2005 18:11
24 lines
1604 bytes
I have the following nested class structure:

public class A {
    public A() {}

    public class B extends A{
        public B(){}
    }

    public class C extends B{
        public C(){}                  // <- error happens here
    }
}

It will compile in JB9 Enterprise, but will not compile in JB2005 
Enterprise.  I am using the same JDK for both JB9 & JB2005 (1.4.2).
In JB2005 I get the following error:
"A.java": cannot reference this before supertype constructor has been called 
at line 9, column 19

Is valid Java code/class structuring?
Why does JB compile it in one version and not the other?

Thanks in advance for any help! 
Technical Details
Message-ID: <41d98a9a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,1d09f1c6e3c1ffa2,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Eric" <noone@nowhere.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Nested Class structure
Date: Mon, 3 Jan 2005 13:11:45 -0500
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 12.37.120.99
Message-ID: <41d98a9a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104775834 12.37.120.99 (3 Jan 2005 10:10:34 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail