From 518cb3776d4ba529dbbbd1233bd6dc1e385c2469 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 4 Feb 2009 21:19:30 +0000 Subject: [PATCH] 263666: missing counter for around advice differing in return type --- .../systemtest/ajc164/Ajc164Tests.java | 50 +++++++++++++++++-- .../org/aspectj/systemtest/ajc164/ajc164.xml | 15 +++++- 2 files changed, 60 insertions(+), 5 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java index 124a005b0..6b0f35462 100644 --- a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java @@ -11,6 +11,8 @@ package org.aspectj.systemtest.ajc164; import java.io.File; +import java.util.Iterator; +import java.util.List; import junit.framework.Test; @@ -20,10 +22,33 @@ import org.aspectj.apache.bcel.classfile.LocalVariableTable; import org.aspectj.apache.bcel.classfile.Method; import org.aspectj.apache.bcel.util.ClassPath; import org.aspectj.apache.bcel.util.SyntheticRepository; +import org.aspectj.asm.AsmManager; +import org.aspectj.asm.IHierarchy; +import org.aspectj.asm.IProgramElement; import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testHandles_pr263666() { + runTest("around advice handles"); + IHierarchy top = AsmManager.lastActiveStructureModel.getHierarchy(); + IProgramElement ipe = null; + ipe = findElementAtLine(top.getRoot(), 22);// public java.util.List Ship.i(List[][] u) + assertEquals(" Ship.i(List[][] u) + assertEquals(" + + + + + - + + + + + + + + + -- 2.39.5