Wed, 02 Jul 2008 12:56:02 -0700
6719955: Update copyright year
Summary: Update copyright year for files that have been modified in 2008
Reviewed-by: ohair, tbell
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 4074421 4277278 4785453
4 * @summary Verify that a local class cannot be redefined within its scope.
5 * @author William Maddox (maddox)
6 *
7 * @run shell LocalClasses_2.sh
8 */
10 class LocalClasses_2 {
12 void foo() {
13 class Local { }
14 {
15 class Local { } // ERROR
16 }
17 }
19 void bar() {
21 class Local { }
23 class Baz {
24 void quux() {
25 class Local { } // OK
26 }
27 }
29 class Quux {
30 void baz() {
31 class Random {
32 void quem() {
33 class Local { } // OK
34 }
35 }
36 }
37 }
38 }
39 }