This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]