public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18147] Objects in instance initializer blocks are scoped too widely
[not found] <bug-18147-9192@http.gcc.gnu.org/bugzilla/>
@ 2007-01-09 20:49 ` tromey at gcc dot gnu dot org
0 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:49 UTC (permalink / raw)
To: java-prs
------- Comment #3 from tromey at gcc dot gnu dot org 2007-01-09 20:46 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18147
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/18147] Objects in instance initializer blocks are scoped too widely
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
@ 2005-01-24 0:57 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-24 0:57 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Last reconfirmed|2004-10-25 18:49:33 |2005-01-24 00:57:56
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18147
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/18147] Objects in instance initializer blocks are scoped too widely
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
2005-01-24 0:57 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-25 18:55 UTC (permalink / raw)
To: java-prs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/18147] Objects in instance initializer blocks are scoped too widely
2004-10-25 18:46 [Bug java/18147] New: " csm at gnu dot org
@ 2004-10-25 18:49 ` pinskia at gcc dot gnu dot org
2004-10-25 18:55 ` tromey at gcc dot gnu dot org
2005-01-24 0:57 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-25 18:49 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-25 18:49 -------
Confirmed, a workaround is to do something like this:
import java.util.HashMap;
class init
{
{{
Object foo = new Object();}
}
{
Object foo = new Object();
}
}
The reduced testcase:
import java.util.HashMap;
class init
{
{
Object foo = new Object();
}
{
Object foo = new Object();
}
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-10-25 18:49:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18147
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-01-09 20:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-18147-9192@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:49 ` [Bug java/18147] Objects in instance initializer blocks are scoped too widely tromey at gcc dot gnu dot org
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
2005-01-24 0:57 ` pinskia at gcc dot gnu dot org
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).