From: aclement Date: Mon, 17 Mar 2008 15:48:13 +0000 (+0000) Subject: 167197: moved test code to 1.6 X-Git-Tag: V1_6_0rc1~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c02ccd671935a94dacbcfb0450d8f4e580c3af29;p=aspectj.git 167197: moved test code to 1.6 --- 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 { + 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 extends ArrayList { + public boolean test(T[] obj) { + return false; + } + +} + +public class Breaker2 extends B1 { + 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(* *(..)) {} +}