Variable scoping in Kaffe and JDK

Alexandre Oliva oliva at
Mon Mar 1 01:49:31 PST 1999

On Mar  1, 1999, jbl at 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 aoliva@{,}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil

More information about the kaffe mailing list