From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10234 invoked by alias); 11 Feb 2005 16:41:02 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 10217 invoked by uid 48); 11 Feb 2005 16:41:02 -0000 Date: Fri, 11 Feb 2005 16:52:00 -0000 Message-ID: <20050211164102.10216.qmail@sourceware.org> From: "aph at gcc dot gnu dot org" To: java-prs@gcc.gnu.org In-Reply-To: <20050211163547.19907.aph@gcc.gnu.org> References: <20050211163547.19907.aph@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/19907] Incorrect code generated for ManifestElement.java X-Bugzilla-Reason: CC X-SW-Source: 2005-q1/txt/msg00357.txt.bz2 List-Id: ------- 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