diff options
author | Horst Burkhardt <horst@adelielinux.org> | 2024-08-18 21:16:57 +1000 |
---|---|---|
committer | Horst Burkhardt <horst@adelielinux.org> | 2024-08-18 21:33:26 +1000 |
commit | dd70691a2345dc325d343e351d105934ea329edb (patch) | |
tree | 2668be9d1720ef41a75d40610a321d304b484e31 /bootstrap/jikes/deprecated-context.patch | |
parent | 1433912a60da06712a7b30dba54345853c695914 (diff) | |
download | packages-dd70691a2345dc325d343e351d105934ea329edb.tar.gz packages-dd70691a2345dc325d343e351d105934ea329edb.tar.bz2 packages-dd70691a2345dc325d343e351d105934ea329edb.tar.xz packages-dd70691a2345dc325d343e351d105934ea329edb.zip |
bootstrap/jikes: new package
Signed-off-by: Horst Burkhardt <horst@adelielinux.org>
Diffstat (limited to 'bootstrap/jikes/deprecated-context.patch')
-rw-r--r-- | bootstrap/jikes/deprecated-context.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bootstrap/jikes/deprecated-context.patch b/bootstrap/jikes/deprecated-context.patch new file mode 100644 index 000000000..0fd05253a --- /dev/null +++ b/bootstrap/jikes/deprecated-context.patch @@ -0,0 +1,25 @@ +--- src/decl.cpp 2004/09/26 22:40:411.144 ++++ src/decl.cpp 2004/10/09 18:04:501.145 +@@ -2596,7 +2596,9 @@ + // + if (control.option.deprecation && + hidden_method -> IsDeprecated() && +- ! method -> containing_type -> file_symbol -> IsClassOnly()) ++ ! method -> containing_type -> file_symbol -> IsClassOnly() && ++ ! method -> IsDeprecated() && ++ ! InDeprecatedContext()) + { + ReportSemError(SemanticError::DEPRECATED_METHOD_OVERRIDE, + left_tok, right_tok, method -> Header(), + +diff -u -r1.159 -r1.160 +--- src/error.cpp 2004/09/26 22:40:411.159 ++++ src/error.cpp 2004/10/10 02:59:401.160 +@@ -513,6 +513,7 @@ + warning[DEPRECATED_FIELD] = WEAK_WARNING; + warning[DEPRECATED_METHOD] = WEAK_WARNING; + warning[DEPRECATED_CONSTRUCTOR] = WEAK_WARNING; ++ warning[DEPRECATED_METHOD_OVERRIDE] = WEAK_WARNING; + + warning[UNNECESSARY_TYPE_IMPORT] = WEAK_WARNING; + warning[MULTIPLE_PUBLIC_TYPES] = WEAK_WARNING; |