From: Ranjit Mathew Date: Tue, 22 Jun 2004 18:17:12 +0000 (+0000) Subject: parse.y (create_class): Correct diagnostic message about java.lang.Object extending... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=815c519159b70c32e1cf201a53fce22260a9e1fd;p=gcc.git 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 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index fd899174028..0c3aa57288d 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2004-06-22 Ranjit Mathew + + * parse.y (create_class): Correct diagnostic message about + java.lang.Object extending anything else. + 2004-06-21 Richard Kenner * class.c (build_class_ref): Add new operand for COMPONENT_REF. diff --git a/gcc/java/parse.y b/gcc/java/parse.y index ed1f05040ec..90e18c9c59e 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; }