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/bugs | |
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/bugs')
-rw-r--r-- | tests/bugs/DecwInitializationITD.java | 2 | ||||
-rw-r--r-- | tests/bugs/WithincodeNPE01.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/DecwInitializationITD.java b/tests/bugs/DecwInitializationITD.java index 26bab8b9e..dec83b051 100644 --- a/tests/bugs/DecwInitializationITD.java +++ b/tests/bugs/DecwInitializationITD.java @@ -8,7 +8,7 @@ // initialization(HW.new(String)) will not match ! aspect A { - HW.new(String s) {} + HW.new(String s) { this(); } declare warning : initialization(HW.new(String,A)) : "Funky ctor found!"; } diff --git a/tests/bugs/WithincodeNPE01.java b/tests/bugs/WithincodeNPE01.java index 8e7accb23..0ff93dc67 100644 --- a/tests/bugs/WithincodeNPE01.java +++ b/tests/bugs/WithincodeNPE01.java @@ -1,5 +1,5 @@ aspect B { - public A.new(String s) { } + public A.new(String s) {this(); } public void A.foo() { int i = 1; } declare warning: withincode(void main(..)): "X"; // Would NPE without the fix for PR67774 |