2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / testsuite / libjava.compile / final_local_switch.java
blobc4a4de6ab36edb4bd364500c356a2418f7105cf5
1 // This bug was discovered while working on java/1413 (compiling freetds.)
2 // http://gcc.gnu.org/ml/java-prs/2000-q4/msg00156.html
3 // The following code should build.
5 class final_local_switch {
6 void foo (int type) {
7 final byte CHARSET_CHANGE = (byte)3;
8 final byte CHARSET_CHANGES = (byte)4;
9 switch (type) {
10 case CHARSET_CHANGE:
11 break;
12 case CHARSET_CHANGES:
13 break;