This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/19907] Incorrect code generated for ManifestElement.java


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]