[Bug java/18147] Objects in instance initializer blocks are scoped too widely
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 25 18:49:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list