[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug java/16839] Final vars in switch generate compile error in anonymous class.
From:       "tromey at gcc dot gnu dot org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2004-07-31 16:10:14
Message-ID: 20040731161014.6116.qmail () sourceware ! org
[Download RAW message or body]


------- 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic