diff options
author | Ranjit Mathew <rmathew@hotmail.com> | 2004-06-22 18:17:12 +0000 |
---|---|---|
committer | Ranjit Mathew <rmathew@gcc.gnu.org> | 2004-06-22 18:17:12 +0000 |
commit | 815c519159b70c32e1cf201a53fce22260a9e1fd (patch) | |
tree | 4cd739f4521c38c0245ffc2bf0c2df61cbc4e579 /gcc | |
parent | 76d2b81de4304f1acf7008f91c15f9fd404a6912 (diff) | |
download | gcc-815c519159b70c32e1cf201a53fce22260a9e1fd.zip gcc-815c519159b70c32e1cf201a53fce22260a9e1fd.tar.gz gcc-815c519159b70c32e1cf201a53fce22260a9e1fd.tar.bz2 |
parse.y (create_class): Correct diagnostic message about java.lang.Object extending anything else.
* parse.y (create_class): Correct diagnostic message about
java.lang.Object extending anything else.
From-SVN: r83507
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/parse.y | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index fd89917..0c3aa57 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2004-06-22 Ranjit Mathew <rmathew@hotmail.com> + + * parse.y (create_class): Correct diagnostic message about + java.lang.Object extending anything else. + 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * class.c (build_class_ref): Add new operand for COMPONENT_REF. diff --git a/gcc/java/parse.y b/gcc/java/parse.y index ed1f050..90e18c9 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -4007,10 +4007,10 @@ create_class (int flags, tree id, tree super, tree interfaces) /* If SUPER exists, use it, otherwise use Object */ if (super) { - /* Can't extend java.lang.Object */ + /* java.lang.Object can't extend anything. */ if (TREE_TYPE (IDENTIFIER_CLASS_VALUE (class_id)) == object_type_node) { - parse_error_context (id, "Can't extend `java.lang.Object'"); + parse_error_context (id, "`java.lang.Object' can't extend anything"); return NULL_TREE; } |