jcf-write.c (generate_classfile): Check whether class is deprecated before writing attribute count.
* jcf-write.c (generate_classfile): Check whether class is deprecated before writing attribute count. From-SVN: r63482
This commit is contained in:
parent
dccd52137d
commit
49b973cbaf
|
@ -1,3 +1,8 @@
|
|||
2003-02-26 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* jcf-write.c (generate_classfile): Check whether class is
|
||||
deprecated before writing attribute count.
|
||||
|
||||
2003-02-25 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* java/decl.c (java_init_decl_processing): Get soft_fmod_node from
|
||||
|
|
|
@ -3103,11 +3103,11 @@ generate_classfile (tree clas, struct jcf_partial *state)
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue