diff options
author | acolyer <acolyer> | 2005-11-03 17:09:45 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-11-03 17:09:45 +0000 |
commit | 9025e8b4185cf965d51e64b1ed0aba7e43d33842 (patch) | |
tree | ee5d7d16f1ea95c5bcf8dea3f7eff00626335aaa /tests/new | |
parent | 38084566dbf9d17cbe375f7fdfa14a821e3d7311 (diff) | |
download | aspectj-9025e8b4185cf965d51e64b1ed0aba7e43d33842.tar.gz aspectj-9025e8b4185cf965d51e64b1ed0aba7e43d33842.zip |
tests for pr62606 - itdcs don't run field initialisers in target type. Largely updates to existing tests to cope with new Lint warning.
Diffstat (limited to 'tests/new')
-rw-r--r-- | tests/new/AdviceOnIntroduced.java | 2 | ||||
-rw-r--r-- | tests/new/DeclareAspectConstructorCE.java | 2 | ||||
-rw-r--r-- | tests/new/DeclareOnlyAspectConstructorCE.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/new/AdviceOnIntroduced.java b/tests/new/AdviceOnIntroduced.java index 4da93f0ca..4a3bba55d 100644 --- a/tests/new/AdviceOnIntroduced.java +++ b/tests/new/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) && diff --git a/tests/new/DeclareAspectConstructorCE.java b/tests/new/DeclareAspectConstructorCE.java index 864d5f097..65b28e049 100644 --- a/tests/new/DeclareAspectConstructorCE.java +++ b/tests/new/DeclareAspectConstructorCE.java @@ -7,5 +7,5 @@ aspect A { } aspect B { - A.new(int i) {} // CE 10 + A.new(int i) { this(); } // CE 10 } diff --git a/tests/new/DeclareOnlyAspectConstructorCE.java b/tests/new/DeclareOnlyAspectConstructorCE.java index 11bde660b..383981a06 100644 --- a/tests/new/DeclareOnlyAspectConstructorCE.java +++ b/tests/new/DeclareOnlyAspectConstructorCE.java @@ -7,5 +7,5 @@ aspect A { } aspect B { - A.new(int i) {} // CE 10 + A.new(int i) { this(); } // CE 10 } |