From 9025e8b4185cf965d51e64b1ed0aba7e43d33842 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 3 Nov 2005 17:09:45 +0000 Subject: tests for pr62606 - itdcs don't run field initialisers in target type. Largely updates to existing tests to cope with new Lint warning. --- tests/design/intro/Simple.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/design') diff --git a/tests/design/intro/Simple.java b/tests/design/intro/Simple.java index cd995d993..d72b04a17 100644 --- a/tests/design/intro/Simple.java +++ b/tests/design/intro/Simple.java @@ -56,10 +56,10 @@ aspect A { return new C(2).m(); } - public C.new(String s) { } + public C.new(String s) { this(); } private C.new(int i) { - Tester.note("new A.C"); + this(); Tester.note("new A.C"); } } @@ -75,6 +75,6 @@ aspect B { } private C.new(int i) { - Tester.note("new B.C"); + this(); Tester.note("new B.C"); } } -- cgit v1.2.3