From: aclement Date: Wed, 4 Feb 2009 21:19:30 +0000 (+0000) Subject: 263666: missing counter for around advice differing in return type X-Git-Tag: pre268419~131 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=518cb3776d4ba529dbbbd1233bd6dc1e385c2469;p=aspectj.git 263666: missing counter for around advice differing in return type --- 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(" + + + + + - + + + + + + + + +