This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Java: qualify_and_find fix
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 26 Jun 2004 20:41:00 -0400
- Subject: Java: qualify_and_find fix
My recent PR java/1207 patch contained a thinko which subtly changed the
behaviour of quality_and_find. This showed up when building Ant with
some inner classes defined by the source parser being laid out too
early, so their field decl's did not have offset info. I'm checking this
in as an obvious fix (no testsuite regressions).
Bryce
Index: parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.485
diff -u -r1.485 parse.y
--- parse.y 26 Jun 2004 20:40:31 -0000 1.485
+++ parse.y 27 Jun 2004 00:26:09 -0000
@@ -5891,7 +5891,7 @@
if ((new_class_decl = IDENTIFIER_CLASS_VALUE (new_qualified)))
{
if (!CLASS_LOADED_P (TREE_TYPE (new_class_decl)))
- load_class (new_qualified, 0);
+ load_class (TREE_TYPE (new_class_decl), 0);
TYPE_NAME (class_type) = new_qualified;
return IDENTIFIER_CLASS_VALUE (new_qualified);
}