parse.y (check_abstract_method_definitions): Also check if `other_method' is abstract.
authorTom Tromey <tromey@cygnus.com>
Sun, 25 Jun 2000 17:28:35 +0000 (17:28 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 25 Jun 2000 17:28:35 +0000 (17:28 +0000)
* parse.y (check_abstract_method_definitions): Also check if
`other_method' is abstract.

From-SVN: r34697

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

index 5b0e1a65aab1c6c226409356bcbe7f6a70e5d24a..10d0a73ea4034b2b72b83a4b109c5e0a4398149c 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * parse.y (patch_incomplete_class_ref): Initialize the returned
index d6ece50a3dc0c50dd60f89e4e31b83457f3c623f..c28407e79c53c08866967d3f9131109d3e3536ba 100644 (file)
@@ -8540,7 +8540,9 @@ check_abstract_method_definitions (do_interface, class_decl, type)
              other_name = EXPR_WFL_NODE (other_name);
            if (!DECL_CLINIT_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;
                break;
index 3e0f83ea564f75d9cefc79cddf13cbcbab674121..a24c3a016ea999f516d227398a4aa0b5d935b0a0 100644 (file)
@@ -5842,7 +5842,9 @@ check_abstract_method_definitions (do_interface, class_decl, type)
              other_name = EXPR_WFL_NODE (other_name);
            if (!DECL_CLINIT_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;
                break;