From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24165 invoked by alias); 3 Dec 2004 23:25:47 -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 24148 invoked by uid 48); 3 Dec 2004 23:25:47 -0000 Date: Fri, 03 Dec 2004 23:25:00 -0000 Message-ID: <20041203232547.24146.qmail@sourceware.org> From: "tromey at gcc dot gnu dot org" To: java-prs@gcc.gnu.org In-Reply-To: <20041202203921.18796.ovidr@users.sourceforge.net> References: <20041202203921.18796.ovidr@users.sourceforge.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/18796] [4.0 Regression] gcj imports wrong superclass X-Bugzilla-Reason: CC X-SW-Source: 2004-q4/txt/msg00521.txt.bz2 List-Id: ------- Additional Comments From tromey at gcc dot gnu dot org 2004-12-03 23:25 ------- I've looked into this a little. Apparently we are getting to this line in resolve_inner_class: local_super = do_resolve_class (NULL, local_super, NULL, NULL); with local_super: (gdb) pt local_super constant invariant 32> unit size constant invariant 4> align 32 symtab 0 alias set -1> ... but with the wrong `ctxp': (gdb) p ctxp.filename $91 = 0x8e3ab1a "./sancho/view/transfer/ClientDetailDialog.java" Then we proceed to find "Dialog" using ClientDetailDialog's imports, resulting in the incorrect org.eclipse.swt.widgets.Dialog You might think we could call do_resolve_class here with "local_enclosing" as an argument, but unfortunately it does not yet seem to have its TYPE_IMPORT_DEMAND_LIST set yet. -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.0 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18796