This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch (Java): [committed] Correct diagnostic message
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: Java Patches <java-patches at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 22 Jun 2004 23:47:18 +0530
- Subject: Patch (Java): [committed] Correct diagnostic message
Hi,
I committed the following to correct a diagnostic message:
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/ChangeLog,v
retrieving revision 1.1384
diff -u -U2 -r1.1384 ChangeLog
--- ChangeLog 22 Jun 2004 03:07:01 -0000 1.1384
+++ ChangeLog 22 Jun 2004 18:12:41 -0000
@@ -1,2 +1,7 @@
+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>
Index: parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.482
diff -u -U2 -r1.482 parse.y
--- parse.y 22 Jun 2004 03:07:04 -0000 1.482
+++ parse.y 22 Jun 2004 18:13:26 -0000
@@ -4008,8 +4008,8 @@
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;
}