parse.y (parser_check_super_interface): Fix error message grammar/order.
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>
Mon, 18 Mar 2002 10:41:01 +0000 (10:41 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Mon, 18 Mar 2002 10:41:01 +0000 (10:41 +0000)
* parse.y (parser_check_super_interface): Fix error message
grammar/order.

From-SVN: r50955

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

index a0c8f1110c2a6064fc4ba02c8aa385a561186e00..0b9051db33ed738a12e17a3b0cd9b83ed0927251 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * parse.y (parser_check_super_interface): Fix error message
+       grammar/order.
+
 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * jcf-parse.c (get_constant): Delete unused variables.
index 6c39ad108ee7e1b6a823727e5b44bd5dc610ad73..8f88c5d6724662344e29b5a83f75b42c0124708e 100644 (file)
@@ -5070,12 +5070,12 @@ parser_check_super_interface (super_decl, this_decl, this_wfl)
   if (!CLASS_INTERFACE (super_decl))
     {
       parse_error_context 
-       (this_wfl, "Can't use %s `%s' to implement/extend %s `%s'",
-        (TYPE_ARRAY_P (super_type) ? "array" : "class"),
-        IDENTIFIER_POINTER (DECL_NAME (super_decl)),
+       (this_wfl, "%s `%s' can't implement/extend %s `%s'",
         (CLASS_INTERFACE (TYPE_NAME (TREE_TYPE (this_decl))) ? 
-         "interface" : "class"),
-        IDENTIFIER_POINTER (DECL_NAME (this_decl)));
+         "Interface" : "Class"),
+        IDENTIFIER_POINTER (DECL_NAME (this_decl)),
+        (TYPE_ARRAY_P (super_type) ? "array" : "class"),
+        IDENTIFIER_POINTER (DECL_NAME (super_decl)));
       return 1;
     }