public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "tromey at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/18147] Objects in instance initializer blocks are scoped too widely Date: Mon, 25 Oct 2004 18:55:00 -0000 [thread overview] Message-ID: <20041025185525.20567.qmail@sourceware.org> (raw) In-Reply-To: <20041025184625.18147.csm@gnu.org> ------- 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
next prev parent reply other threads:[~2004-10-25 18:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-10-25 18:46 [Bug java/18147] New: " csm at gnu dot org 2004-10-25 18:49 ` [Bug java/18147] " pinskia at gcc dot gnu dot org 2004-10-25 18:55 ` tromey at gcc dot gnu dot org [this message] 2005-01-24 0:57 ` pinskia at gcc dot gnu dot org [not found] <bug-18147-9192@http.gcc.gnu.org/bugzilla/> 2007-01-09 20:49 ` tromey at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20041025185525.20567.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).