* parse.y (create_interface): Remove bogus test.
authorPer Bothner <bothner@cygnus.com>
Wed, 16 Dec 1998 17:44:49 +0000 (17:44 +0000)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 16 Dec 1998 17:44:49 +0000 (09:44 -0800)
From-SVN: r24348

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

index e81caeb..72e1535 100644 (file)
@@ -1,3 +1,7 @@
+Wed Dec 16 16:18:59 1998  Per Bothner  <bothner@cygnus.com>
+
+       * parse.y (create_interface):  Remove bogus test.
+
 Wed Dec 16 14:42:19 1998  Per Bothner  <bothner@cygnus.com>
 
        * jcf-parse.c (get_constant):  Set TREE_TYPE for string constants.
index 1d0cca7..579208e 100644 (file)
@@ -5525,11 +5525,6 @@ create_interface (flags, id, super)
       (MODIFIER_WFL (ABSTRACT_TK),
        "Redundant use of `abstract' modifier. Interface `%s' is implicitely "
        "abstract", IDENTIFIER_POINTER (raw_name));
-  if (flags & ACC_PUBLIC && flags & ACC_ABSTRACT)
-    parse_error_context 
-      (MODIFIER_WFL (ABSTRACT_TK),
-       "Can't specify both `public' and `abstract' modifiers in the "
-       "definition of interface `%s'", IDENTIFIER_POINTER (raw_name));
 
   /* Create a new decl if DECL is NULL, otherwise fix it */
   decl = maybe_create_class_interface_decl (decl, q_name, id);
index 3f26eb0..ea824c1 100644 (file)
@@ -2887,11 +2887,6 @@ create_interface (flags, id, super)
       (MODIFIER_WFL (ABSTRACT_TK),
        "Redundant use of `abstract' modifier. Interface `%s' is implicitely "
        "abstract", IDENTIFIER_POINTER (raw_name));
-  if (flags & ACC_PUBLIC && flags & ACC_ABSTRACT)
-    parse_error_context 
-      (MODIFIER_WFL (ABSTRACT_TK),
-       "Can't specify both `public' and `abstract' modifiers in the "
-       "definition of interface `%s'", IDENTIFIER_POINTER (raw_name));
 
   /* Create a new decl if DECL is NULL, otherwise fix it */
   decl = maybe_create_class_interface_decl (decl, q_name, id);