* parse.y (create_class): Correct diagnostic message about
authorrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2004 18:17:12 +0000 (18:17 +0000)
committerrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2004 18:17:12 +0000 (18:17 +0000)
java.lang.Object extending anything else.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83507 138bc75d-0d04-0410-961f-82ee72b054a4

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

index fd89917..0c3aa57 100644 (file)
@@ -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.
index ed1f050..90e18c9 100644 (file)
@@ -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;
        }