This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/19907] Incorrect code generated for ManifestElement.java
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2005 16:41:02 -0000
- Subject: [Bug java/19907] Incorrect code generated for ManifestElement.java
- References: <20050211163547.19907.aph@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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