|
|
@@ -23,7 +23,15 @@ import org.aspectj.testing.XMLBasedAjcTestCase; |
|
|
|
|
|
|
|
public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { |
|
|
|
|
|
|
|
public void testBrokenLVT_pr194314_1() { |
|
|
|
public void testGenericPointcuts_1() { |
|
|
|
runTest("generic pointcuts - 1"); |
|
|
|
} |
|
|
|
|
|
|
|
public void testGenericPointcuts_2() { |
|
|
|
runTest("generic pointcuts - 2"); |
|
|
|
} |
|
|
|
|
|
|
|
public void testBrokenLVT_pr194314_1() throws Exception { |
|
|
|
runTest("broken lvt - 1"); |
|
|
|
JavaClass jc = Utils.getClassFrom(ajc.getSandboxDirectory().getAbsolutePath(), "Service"); |
|
|
|
Method[] ms = jc.getMethods(); |
|
|
@@ -57,20 +65,28 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { |
|
|
|
System.out.println(m.getLocalVariableTable()); |
|
|
|
LocalVariable[] lvt = m.getLocalVariableTable().getLocalVariableTable(); |
|
|
|
assertEquals(8, lvt.length); |
|
|
|
// assertEquals(2, m.getLocalVariableTable().getLocalVariableTable().length); |
|
|
|
// assertEquals(2, |
|
|
|
// m.getLocalVariableTable().getLocalVariableTable().length); |
|
|
|
|
|
|
|
// Before I've started any work on this: |
|
|
|
// LocalVariable(start_pc = 0, length = 68, index = 0:ServiceInterceptorCodeStyle this) |
|
|
|
// LocalVariable(start_pc = 0, length = 68, index = 1:org.aspectj.runtime.internal.AroundClosure ajc_aroundClosure) |
|
|
|
// LocalVariable(start_pc = 0, length = 68, index = 2:org.aspectj.lang.JoinPoint thisJoinPoint) |
|
|
|
// LocalVariable(start_pc = 0, length = 68, index = |
|
|
|
// 0:ServiceInterceptorCodeStyle this) |
|
|
|
// LocalVariable(start_pc = 0, length = 68, index = |
|
|
|
// 1:org.aspectj.runtime.internal.AroundClosure ajc_aroundClosure) |
|
|
|
// LocalVariable(start_pc = 0, length = 68, index = |
|
|
|
// 2:org.aspectj.lang.JoinPoint thisJoinPoint) |
|
|
|
// LocalVariable(start_pc = 9, length = 59, index = 3:Object[] args) |
|
|
|
// LocalVariable(start_pc = 21, length = 47, index = 4:long id) |
|
|
|
|
|
|
|
// Method signature: |
|
|
|
// private static final void method_aroundBody1$advice(Service, long, org.aspectj.lang.JoinPoint, |
|
|
|
// ServiceInterceptorCodeStyle, org.aspectj.runtime.internal.AroundClosure, org.aspectj.lang.JoinPoint); |
|
|
|
// private static final void method_aroundBody1$advice(Service, long, |
|
|
|
// org.aspectj.lang.JoinPoint, |
|
|
|
// ServiceInterceptorCodeStyle, |
|
|
|
// org.aspectj.runtime.internal.AroundClosure, |
|
|
|
// org.aspectj.lang.JoinPoint); |
|
|
|
// |
|
|
|
// Service, JoinPoint, ServiceInterceptorCodeStyle, AroundClosure, JoinPoint |
|
|
|
// Service, JoinPoint, ServiceInterceptorCodeStyle, AroundClosure, |
|
|
|
// JoinPoint |
|
|
|
|
|
|
|
// args should be in slot 7 and the long in position 8 |
|
|
|
|