parse.y (qualify_and_find): Pass type decl, not identifier, to load_class.
authorBryce McKinlay <mckinlay@redhat.com>
Sun, 27 Jun 2004 00:34:57 +0000 (00:34 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Sun, 27 Jun 2004 00:34:57 +0000 (01:34 +0100)
* parse.y (qualify_and_find): Pass type decl, not identifier, to
load_class.

From-SVN: r83728

gcc/java/ChangeLog
gcc/java/parse.y

index 7193e1a8b7fec038c652998f81f9dbeea5c020ad..e3e1964cb55bdaf99f28a1e232218faad77039a4 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-26  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * parse.y (qualify_and_find): Pass type decl, not identifier, to 
+       load_class.
+
 2004-06-26  Bryce McKinlay  <mckinlay@redhat.com>
 
        PR java/15734
index 5b8a3039f68d7d52c15f212275f8c62af134a47d..e4ad4cd2e2260ef7b6b0f707a30376e5f0df8d80 100644 (file)
@@ -5891,7 +5891,7 @@ qualify_and_find (tree class_type, tree package, tree name)
   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);
     }