test/tools/javac/Closure2.java

changeset 289
84061bd68019
parent 1
9a66ca7c79fa
child 554
9d9f26857129
equal deleted inserted replaced
288:d402db1005ad 289:84061bd68019
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().

mercurial