jcf-write.c (generate_classfile): Don't write ConstantValue attribute if field is...
authorPer Bothner <per@bothner.com>
Thu, 30 Aug 2001 21:08:32 +0000 (14:08 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 30 Aug 2001 21:08:32 +0000 (14:08 -0700)
commit1b9ee7233caa4e6ff8f964318f0762bf2df6639b
tree0a3e102f4903a3458ca1b8037ffd7d48b66c1484
parentb8ec576419e8dd1e335dd16d22a0cd7a9b1865e0
jcf-write.c (generate_classfile): Don't write ConstantValue attribute if field is not final...

* jcf-write.c (generate_classfile):  Don't write ConstantValue
attribute if field is not final, for compatibility with jdk.

* jcf-write.c (generate_classfile):  Convert ConstantValue values
to correct type.  Work-around for front-end bug.
* class.c (set_constant_value):  Error if constant has wrong type.

From-SVN: r45298
gcc/java/ChangeLog
gcc/java/class.c
gcc/java/jcf-write.c