* jcf-write.c (generate_classfile): Don't write ConstantValue
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Aug 2001 21:08:32 +0000 (21:08 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Aug 2001 21:08:32 +0000 (21:08 +0000)
commit49add0022489e2bada881e75d4a515586b58c591
tree0a3e102f4903a3458ca1b8037ffd7d48b66c1484
parent17c7a04d1c73b837492a822490fa59ee17db094f
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45298 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/java/ChangeLog
gcc/java/class.c
gcc/java/jcf-write.c