aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/final_local_switch.java
blob: c4a4de6ab36edb4bd364500c356a2418f7105cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This bug was discovered while working on java/1413 (compiling freetds.)
// http://gcc.gnu.org/ml/java-prs/2000-q4/msg00156.html
// The following code should build.

class final_local_switch {
    void foo (int type) {
	final byte CHARSET_CHANGE = (byte)3;
	final byte CHARSET_CHANGES = (byte)4;
	switch (type) {
	case CHARSET_CHANGE:
	    break;
	case CHARSET_CHANGES:
	    break;
	}
    }
}