From 40dbfa989a6849f2fd446ff17f664bf98bb5d1b4 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 9 Jun 2005 12:33:19 +0000 Subject: [PATCH] Readded test, order fixed via precedence --- tests/java5/pertypewithin/Q.java | 2 ++ .../org/aspectj/systemtest/ajc150/PerTypeWithinTests.java | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/java5/pertypewithin/Q.java b/tests/java5/pertypewithin/Q.java index 7c5d05985..8a2fe8f0c 100644 --- a/tests/java5/pertypewithin/Q.java +++ b/tests/java5/pertypewithin/Q.java @@ -1,5 +1,7 @@ aspect Q pertypewithin(P) { + declare precedence: R,Q; + int ctr = 0; after(): execution(* runA(..)) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/PerTypeWithinTests.java b/tests/src/org/aspectj/systemtest/ajc150/PerTypeWithinTests.java index 147e74e22..9abfebe14 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/PerTypeWithinTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/PerTypeWithinTests.java @@ -58,10 +58,9 @@ public class PerTypeWithinTests extends XMLBasedAjcTestCase { * Aspects Q and R match P with a pertypewithin() - they shouldn't clash in any way * */ - // TODO test invalid - assumes advise in unrelated aspects are ordered -// public void testTwoAspectsHittingOneType() { -// runTest("ptw multi-aspects"); -// } + public void testTwoAspectsHittingOneType() { + runTest("ptw multi-aspects"); + } /** * Checks the use of pertypewithin() doesn't result in extra join points (i.e. the -- 2.39.5