diff options
author | aclement <aclement> | 2008-03-17 15:48:13 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-03-17 15:48:13 +0000 |
commit | c02ccd671935a94dacbcfb0450d8f4e580c3af29 (patch) | |
tree | 4a9a409b74614f492fcab71baacae1e2c1e28fac /tests/bugs160 | |
parent | 4297286eee93de4e6589855c776a97f4dc72c044 (diff) | |
download | aspectj-c02ccd671935a94dacbcfb0450d8f4e580c3af29.tar.gz aspectj-c02ccd671935a94dacbcfb0450d8f4e580c3af29.zip |
167197: moved test code to 1.6
Diffstat (limited to 'tests/bugs160')
-rw-r--r-- | tests/bugs160/pr167197/AspectBreaker.java | 22 | ||||
-rw-r--r-- | tests/bugs160/pr167197/Breaker2.java | 33 |
2 files changed, 55 insertions, 0 deletions
diff --git a/tests/bugs160/pr167197/AspectBreaker.java b/tests/bugs160/pr167197/AspectBreaker.java new file mode 100644 index 000000000..865b7aac7 --- /dev/null +++ b/tests/bugs160/pr167197/AspectBreaker.java @@ -0,0 +1,22 @@ +import java.util.ArrayList; + +public class AspectBreaker extends ArrayList<ICounterValue[]> { + private static final long serialVersionUID = 1L; + + public AspectBreaker() { + } + + public boolean test(ICounterValue[] obj) { + this.size(); + + return false; + } +} + +interface ICounterValue { + +} + +aspect X { + before(): call(* *(..)) {} +} diff --git a/tests/bugs160/pr167197/Breaker2.java b/tests/bugs160/pr167197/Breaker2.java new file mode 100644 index 000000000..cab08767f --- /dev/null +++ b/tests/bugs160/pr167197/Breaker2.java @@ -0,0 +1,33 @@ +import java.util.ArrayList; + +class B1<T> extends ArrayList<T[]> { + public boolean test(T[] obj) { + return false; + } + +} + +public class Breaker2 extends B1<ICounterValue[]> { + private static final long serialVersionUID = 1L; + + public Breaker2() { + } + + public boolean test(ICounterValue[] obj) { + this.size(); + + return false; + } + + public static void main(String[]argv) { + new Breaker2().test(new ICounterValue[]{}); + } +} + +interface ICounterValue { + +} + +aspect X { + before(): call(* *(..)) {} +} |