public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tromey at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug java/16839] Final vars in switch generate compile error in anonymous class. Date: Sat, 31 Jul 2004 16:10:00 -0000 [thread overview] Message-ID: <20040731161014.6116.qmail@sourceware.org> (raw) In-Reply-To: <20040730222448.16839.beandz@hotmail.com> ------- Additional Comments From tromey at gcc dot gnu dot org 2004-07-31 16:10 ------- I believe the bug here is that gcj captures all final local variables in an anonymous class constructor, whether or not those variables are used by the class. This means that "s" appears to be used by the "new" invocation, causing the definite assignment code to emit an error (which would be correct if the anonymous class actually had a use of the variable). -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-07-31 16:10:13 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16839
next prev parent reply other threads:[~2004-07-31 16:10 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-30 22:24 [Bug java/16839] New: " beandz at hotmail dot com 2004-07-31 16:10 ` tromey at gcc dot gnu dot org [this message] 2004-12-27 14:45 ` [Bug java/16839] " pinskia at gcc dot gnu dot org 2005-01-01 20:11 ` beandz at hotmail dot com 2005-01-01 20:17 ` pinskia at gcc dot gnu dot org [not found] <bug-16839-9046@http.gcc.gnu.org/bugzilla/> 2007-01-09 20:51 ` 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=20040731161014.6116.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).