This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: Another deprecation fix
- From: Tom Tromey <tromey at redhat dot com>
- To: GCC libjava patches <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 23 Mar 2003 12:36:35 -0700
- Subject: Patch: Another deprecation fix
- Reply-to: tromey at redhat dot com
Today I discovered that the @deprecated tag doesn't take effect on an
interface. For instance, see java.security.Certificate.
The appended patch fixes the problem. Ok for trunk?
Tom
Index: gcc/java/ChangeLog
from Tom Tromey <tromey at redhat dot com>
* parse.y (create_interface): Call CHECK_DEPRECATED.
Index: gcc/java/parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.426
diff -u -r1.426 parse.y
--- gcc/java/parse.y 13 Mar 2003 18:35:01 -0000 1.426
+++ gcc/java/parse.y 23 Mar 2003 19:38:22 -0000
@@ -3831,6 +3831,9 @@
CLASS_COMPLETE_P (decl) = 1;
add_superinterfaces (decl, super);
+ /* Eventually sets the @deprecated tag flag */
+ CHECK_DEPRECATED (decl);
+
return decl;
}