summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-18 10:41:01 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-18 10:41:01 +0000
commitd4639c022f493f98642cf675633215fe427b4f74 (patch)
treee8f3ab265e55c03f9f9cb970ef7887db9ed728fd /gcc/java
parent5606b4a6f05a7f39641397bd90600f8e82bf25b4 (diff)
downloadgcc-d4639c022f493f98642cf675633215fe427b4f74.tar.gz
* parse.y (parser_check_super_interface): Fix error message
grammar/order. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/parse.y10
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index a0c8f1110c2..0b9051db33e 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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.
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 6c39ad108ee..8f88c5d6724 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -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;
}