diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2001-01-18 03:07:01 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-01-17 19:07:01 -0800 |
commit | b1117741f1cb3690e04fd39175efaee1f30cace3 (patch) | |
tree | de405ca21842c0427733a90ceb46c06fff45bdad /gcc/java/parse.y | |
parent | acf8f04b16f78920602d68e8c1eb1699d6a79d0e (diff) | |
download | gcc-b1117741f1cb3690e04fd39175efaee1f30cace3.zip gcc-b1117741f1cb3690e04fd39175efaee1f30cace3.tar.gz gcc-b1117741f1cb3690e04fd39175efaee1f30cace3.tar.bz2 |
lang-options.h (-Wunsupported-jdk11): Removed.
2001-01-17 Alexandre Petit-Bianco <apbianco@cygnus.com>
* lang-options.h (-Wunsupported-jdk11): Removed.
* lang.c (flag_not_overriding): Deleted.
(flag_static_local_jdk1_1): Likewise.
(lang_W_options): Removed "unsupported-jdk11" entry.
* parse.y (java_check_methods): Removed dead code.
(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01479.html)
From-SVN: r39107
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 7d75861..c5165b7 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -6195,24 +6195,6 @@ java_check_regular_methods (class_decl) } aflags = get_access_flags_from_decl (found); - /* If the method has default, access in an other package, then - issue a warning that the current method doesn't override the - one that was found elsewhere. Do not issue this warning when - the match was found in java.lang.Object. */ - if (DECL_CONTEXT (found) != object_type_node - && ((aflags & ACC_VISIBILITY) == 0) - && !class_in_current_package (DECL_CONTEXT (found)) - && !DECL_CLINIT_P (found) - && flag_not_overriding) - { - parse_warning_context - (method_wfl, "Method `%s' in class `%s' does not override the corresponding method in class `%s', which is private to a different package", - lang_printable_name (found, 0), - IDENTIFIER_POINTER (DECL_NAME (class_decl)), - IDENTIFIER_POINTER (DECL_NAME - (TYPE_NAME (DECL_CONTEXT (found))))); - continue; - } /* Can't override final. Can't override static. */ if (METHOD_FINAL (found) || METHOD_STATIC (found)) |