Patch: fix gcj deprecation support
Tom Tromey
tromey@redhat.com
Wed Feb 26 20:12:00 GMT 2003
>>>>> "Michael" == Michael Koch <konqueror@gmx.de> writes:
Michael> There seems to be a still a bug: Classes can not correctly be
Michael> deprecated. See java.io.StringBufferInputStream.
Thanks.
I suspect this was a merge error on my part. Though I don't really
understand since I ran Jacks after the merge.
I'm checking in the appended as obvious. Tested against Jacks. Also
tested against a simple test case before and after, to verify that
class deprecation used to fail and now works.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* jcf-write.c (generate_classfile): Check whether class is
deprecated before writing attribute count.
Index: jcf-write.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-write.c,v
retrieving revision 1.121
diff -u -r1.121 jcf-write.c
--- jcf-write.c 24 Feb 2003 02:14:49 -0000 1.121
+++ jcf-write.c 26 Feb 2003 20:10:53 -0000
@@ -3103,10 +3103,10 @@
i++;
if (clas == object_type_node)
i++;
- PUT2 (i); /* attributes_count */
-
if (CLASS_DEPRECATED (TYPE_NAME (clas)))
i++;
+
+ PUT2 (i); /* attributes_count */
/* generate the SourceFile attribute. */
if (SourceFile_node == NULL_TREE)
More information about the Gcc-patches
mailing list