Commit 49b973cb by Tom Tromey Committed by Tom Tromey

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
parent dccd5213
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> 2003-02-25 Roger Sayle <roger@eyesopen.com>
* java/decl.c (java_init_decl_processing): Get soft_fmod_node from * java/decl.c (java_init_decl_processing): Get soft_fmod_node from
......
...@@ -3103,11 +3103,11 @@ generate_classfile (tree clas, struct jcf_partial *state) ...@@ -3103,11 +3103,11 @@ generate_classfile (tree clas, struct jcf_partial *state)
i++; i++;
if (clas == object_type_node) if (clas == object_type_node)
i++; i++;
PUT2 (i); /* attributes_count */
if (CLASS_DEPRECATED (TYPE_NAME (clas))) if (CLASS_DEPRECATED (TYPE_NAME (clas)))
i++; i++;
PUT2 (i); /* attributes_count */
/* generate the SourceFile attribute. */ /* generate the SourceFile attribute. */
if (SourceFile_node == NULL_TREE) if (SourceFile_node == NULL_TREE)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment