25 * @test |
25 * @test |
26 * @bug 4030374 |
26 * @bug 4030374 |
27 * @summary Initialization of up-level links, immediately after super(), occurs too late. |
27 * @summary Initialization of up-level links, immediately after super(), occurs too late. |
28 * @author gafter |
28 * @author gafter |
29 * |
29 * |
30 * @compile -source 1.4 -target 1.4 Closure2.java |
30 * @compile Closure2.java |
31 * @run main Closure2 |
31 * @run main Closure2 |
32 */ |
32 */ |
33 |
33 |
34 // Make sure the closure is present when the superclass is constructed. |
34 // Make sure the closure is present when the superclass is constructed. |
35 // Specifically, inner2 must have its Closure2.this initialized when inner calls go(). |
35 // Specifically, inner2 must have its Closure2.this initialized when inner calls go(). |