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. --- .../classWAroundClosureRemoved/AdviceOnIntroduced.delete.20.java | 2 +- .../initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/incremental') diff --git a/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.delete.20.java b/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.delete.20.java index 4da93f0ca..3da3275e8 100644 --- a/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.delete.20.java +++ b/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.delete.20.java @@ -8,7 +8,7 @@ public aspect AdviceOnIntroduced { } int Foo.foo(int n) { return n; } - Foo.new(int w) {} + Foo.new(int w) {this();} int around(int n): within(AdviceOnIntroduced) && diff --git a/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.java b/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.java index 4da93f0ca..4a3bba55d 100644 --- a/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.java +++ b/tests/incremental/initialTests/classWAroundClosureRemoved/AdviceOnIntroduced.java @@ -8,7 +8,7 @@ public aspect AdviceOnIntroduced { } int Foo.foo(int n) { return n; } - Foo.new(int w) {} + Foo.new(int w) { this(); } int around(int n): within(AdviceOnIntroduced) && -- cgit v1.2.3