Commit 815c5191 by Ranjit Mathew Committed by Ranjit Mathew

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
parent 76d2b81d
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.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment