[Bug java/17845] [4.1 Regression] More problems with simple type names as superclasses
bonzini at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 12 08:09:00 GMT 2005
------- 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
More information about the Java-prs
mailing list