From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28372 invoked by alias); 12 May 2005 08:09:21 -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 28335 invoked by uid 48); 12 May 2005 08:09:19 -0000 Date: Thu, 12 May 2005 08:09:00 -0000 Message-ID: <20050512080919.28334.qmail@sourceware.org> From: "bonzini at gcc dot gnu dot org" To: java-prs@gcc.gnu.org In-Reply-To: <20041005154252.17845.tromey@gcc.gnu.org> References: <20041005154252.17845.tromey@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/17845] [4.1 Regression] More problems with simple type names as superclasses X-Bugzilla-Reason: CC X-SW-Source: 2005-q2/txt/msg00428.txt.bz2 List-Id: ------- Additional Comments From bonzini at gcc dot gnu dot org 2005-05-12 08:09 ------- This code in do_resolve_class seems bogus to me. Fixing it removes the failure. Note that java.security is in the package_list because of Dummy.java, but it absolutely does *not* belong in the search path! This is the only use of package_list, by the way. /* 5- Try with a name qualified with the package names we've seen so far */ if (!QUALIFIED_P (TYPE_NAME (class_type))) { tree package; /* If there is a current package (ctxp->package), it's the first element of package_list and we can skip it. */ for (package = (ctxp->package ? TREE_CHAIN (package_list) : package_list); package; package = TREE_CHAIN (package)) if ((new_class_decl = qualify_and_find (class_type, TREE_PURPOSE (package), TYPE_NAME (class_type)))) return new_class_decl; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17845