From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20596 invoked by alias); 25 Oct 2004 18:55:26 -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 20568 invoked by uid 48); 25 Oct 2004 18:55:25 -0000 Date: Mon, 25 Oct 2004 18:55:00 -0000 Message-ID: <20041025185525.20567.qmail@sourceware.org> From: "tromey at gcc dot gnu dot org" To: java-prs@gcc.gnu.org In-Reply-To: <20041025184625.18147.csm@gnu.org> References: <20041025184625.18147.csm@gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/18147] Objects in instance initializer blocks are scoped too widely X-Bugzilla-Reason: CC X-SW-Source: 2004-q4/txt/msg00220.txt.bz2 List-Id: ------- Additional Comments From tromey at gcc dot gnu dot org 2004-10-25 18:55 ------- As a workaround you can put an extra block inside the instance initializers: {{ Object foo = ... }} The bug here seems to be that gcj chains the statements of each initializer block together when making finit. Instead, however, it should treat each as a separate block and chain the blocks together. That is, an instance initializer block introduces a new scope. -- What |Removed |Added ---------------------------------------------------------------------------- Keywords|rejects-valid | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18147