From c02ccd671935a94dacbcfb0450d8f4e580c3af29 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 17 Mar 2008 15:48:13 +0000 Subject: [PATCH] 167197: moved test code to 1.6 --- tests/bugs160/pr167197/AspectBreaker.java | 22 +++++++++++++++ tests/bugs160/pr167197/Breaker2.java | 33 +++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tests/bugs160/pr167197/AspectBreaker.java create mode 100644 tests/bugs160/pr167197/Breaker2.java 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(* *(..)) {} +} -- 2.39.5