parse.y (parser_check_super_interface): Fix error message grammar/order.
* parse.y (parser_check_super_interface): Fix error message grammar/order. From-SVN: r50955
This commit is contained in:
parent
66c17b6479
commit
6befbee5ff
2 changed files with 10 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue