Commit 120f0c10 by Tom Tromey Committed by Tom Tromey

parse.y (check_abstract_method_definitions): Also check if `other_method' is abstract.

	* parse.y (check_abstract_method_definitions): Also check if
	`other_method' is abstract.

From-SVN: r34697
parent 4061f623
2000-06-24 Tom Tromey <tromey@cygnus.com>
* parse.y (check_abstract_method_definitions): Also check if
`other_method' is abstract.
2000-06-23 Tom Tromey <tromey@cygnus.com> 2000-06-23 Tom Tromey <tromey@cygnus.com>
* parse.y (patch_incomplete_class_ref): Initialize the returned * parse.y (patch_incomplete_class_ref): Initialize the returned
......
...@@ -8540,7 +8540,9 @@ check_abstract_method_definitions (do_interface, class_decl, type) ...@@ -8540,7 +8540,9 @@ check_abstract_method_definitions (do_interface, class_decl, type)
other_name = EXPR_WFL_NODE (other_name); other_name = EXPR_WFL_NODE (other_name);
if (!DECL_CLINIT_P (other_method) if (!DECL_CLINIT_P (other_method)
&& !DECL_CONSTRUCTOR_P (other_method) && !DECL_CONSTRUCTOR_P (other_method)
&& method_name == other_name && method_sig == s) && method_name == other_name
&& method_sig == s
&& !METHOD_ABSTRACT (other_method))
{ {
found = 1; found = 1;
break; break;
......
...@@ -5842,7 +5842,9 @@ check_abstract_method_definitions (do_interface, class_decl, type) ...@@ -5842,7 +5842,9 @@ check_abstract_method_definitions (do_interface, class_decl, type)
other_name = EXPR_WFL_NODE (other_name); other_name = EXPR_WFL_NODE (other_name);
if (!DECL_CLINIT_P (other_method) if (!DECL_CLINIT_P (other_method)
&& !DECL_CONSTRUCTOR_P (other_method) && !DECL_CONSTRUCTOR_P (other_method)
&& method_name == other_name && method_sig == s) && method_name == other_name
&& method_sig == s
&& !METHOD_ABSTRACT (other_method))
{ {
found = 1; found = 1;
break; break;
......
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