[Bug java/19907] Incorrect code generated for ManifestElement.java
aph at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Feb 11 21:08:00 GMT 2005
------- Additional Comments From aph at gcc dot gnu dot org 2005-02-11 16:41 -------
The method ArrayList.add() return a boolean, so the bytecode compiler generates
a temp of type promoted_boolean. Unfortunately, the same temp is used later as
an int.
This problem arises because promoted booleans in the Java VM are really an
integer type, not a boolean type. It's perfectly legal to store a boolean and
then read an int for the same slot. So, we need to use int temporaries for
booleans, not promoted_boolean.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-02-11 16:41:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19907
More information about the Gcc-bugs
mailing list