Variable scoping in Kaffe and JDK

Alexandre Oliva oliva at dcc.unicamp.br
Mon Mar 1 01:49:31 PST 1999


On Mar  1, 1999, jbl at cordelia.res.cmu.edu wrote:

> If I declare a variable in one case block of a switch
> statement, does Java let me use the same variable name
> in another block of the same switch statement?

Nope.  Pizza (Kaffe's javac) accepts it but it is wrong.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil



More information about the kaffe mailing list