OSDN Git Service

(This trying to counter the effect of the PR 195 check in -- this should
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 May 2000 04:49:51 +0000 (04:49 +0000)
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 May 2000 04:49:51 +0000 (04:49 +0000)
 be right now.)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33602 138bc75d-0d04-0410-961f-82ee72b054a4

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

index a01cb65..42d4699 100644 (file)
@@ -9996,7 +9996,8 @@ java_complete_expand_methods (class_decl)
   for (decl = first_decl; decl; decl = TREE_CHAIN (decl))
     {
       /* Skip abstract or native methods */
-      if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl))
+      if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl)
+         || DECL_CONSTRUCTOR_P (decl) || DECL_CLINIT_P (decl))
        continue;
       java_complete_expand_method (decl);
     }
index f56daab..427ba75 100644 (file)
@@ -7298,7 +7298,8 @@ java_complete_expand_methods (class_decl)
   for (decl = first_decl; decl; decl = TREE_CHAIN (decl))
     {
       /* Skip abstract or native methods */
-      if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl))
+      if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl)
+         || DECL_CONSTRUCTOR_P (decl) || DECL_CLINIT_P (decl))
        continue;
       java_complete_expand_method (decl);
     }