parse.y (create_class): Correct diagnostic message about java.lang.Object extending...
authorRanjit Mathew <rmathew@hotmail.com>
Tue, 22 Jun 2004 18:17:12 +0000 (18:17 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Tue, 22 Jun 2004 18:17:12 +0000 (18:17 +0000)
* parse.y (create_class): Correct diagnostic message about
java.lang.Object extending anything else.

From-SVN: r83507

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

index fd899174028c6c55f2843d8c4e0d76bb60fa34cd..0c3aa57288d5431d5f9dd16ac0ff310a0c196f94 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 ed1f05040ec9f81cdec2f3561649b3c70ad483a9..90e18c9c59efe665f5a54da8a4e66bf143866569 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;
        }