From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19756 invoked by alias); 23 Feb 2002 14:06:05 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 19665 invoked by uid 71); 23 Feb 2002 14:06:03 -0000 Resent-Date: 23 Feb 2002 14:06:03 -0000 Resent-Message-ID: <20020223140603.19664.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, goran@kirra.net Received:(qmail 18461 invoked from network); 23 Feb 2002 14:04:39 -0000 Received: from unknown (HELO pollux.sema.se) (217.150.160.10) by sources.redhat.com with SMTP; 23 Feb 2002 14:04:39 -0000 Received: from ds11.sdl.sema.se ([172.22.172.45]) by pollux.sema.se (8.11.6/8.11.6) with ESMTP id g1NE4cK25875 for ; Sat, 23 Feb 2002 15:04:38 +0100 Received: from cm-linux.lla.sema.se ([172.22.16.7]) by ds11.sdl.sema.se (Lotus Domino Release 5.0.8) with SMTP id 2002022314573744:6632 ; Sat, 23 Feb 2002 14:57:37 +0100 Received: by cm-linux.lla.sema.se (sSMTP sendmail emulation); Sat, 23 Feb 2002 15:04:35 +0100 Message-Id: Date: Sat, 23 Feb 2002 06:06:00 -0000 From: goran@kirra.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: java/5758: compilation failure with GCJ pre-3.1 and nested classes X-SW-Source: 2002-q1/txt/msg00106.txt.bz2 List-Id: >Number: 5758 >Category: java >Synopsis: compilation failure with GCJ pre-3.1 and nested classes >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Sat Feb 23 06:06:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1 20020223 (experimental) >Organization: kirra.net / SchlumbergerSema >Environment: System: Linux cm-linux.lla.sema.se 2.4.17 #8 mån feb 18 17:25:46 CET 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ./configure --host=i686-pc-linux-gnu --prefix=/usr/local/gcc --enable-threads --enable-languages=c++,java : (reconfigured) : (reconfigured) ./configure --host=i686-pc-linux-gnu --prefix=/usr/local/gcc --enable-threads --enable-languages=c++,java >Description: in this case when extending a "root class" from a public inner class: ---- file RedBlackTree.java ------------------------------- public class RedBlackTree { public static abstract class AbstractRBNode { } } ---- file AccountingTreeBlock.java ------------------------------- public abstract class AccountingTreeBlock extends RedBlackTree.AbstractRBNode { } -------------------------------------------------------- Compiling gives:bash-2.05a$ gcj -Wall -c AccountingTreeBlock.java AccountingTreeBlock.java:2: Superclass `RedBlackTree.AbstractRBNode' of class `AccountingTreeBlock' not found. public abstract class AccountingTreeBlock extends RedBlackTree.AbstractRBNode { ^ 1 error It compiles OK with JDK 1.3.1 and 1.4 and Jikes 1.5 >How-To-Repeat: See above No preprocessor output given by gcj >Fix: Break out the inner class as a "root class" in it's own .java file >Release-Note: >Audit-Trail: >Unformatted: