@@ -0,0 +1,14 @@ | |||
import org.aspectj.lang.annotation.*; | |||
import org.aspectj.lang.*; | |||
public abstract aspect Foo { | |||
public abstract pointcut targetPointcut(); | |||
@Around("targetPointcut()") | |||
public Object someAdvice(ProceedingJoinPoint thisJoinPoint) | |||
{ | |||
return thisJoinPoint.proceed(); | |||
} | |||
} | |||
@@ -0,0 +1,12 @@ | |||
import java.util.*; | |||
public aspect Handles { | |||
public java.util.List<String> Ship.i(List<String>[][] u) { | |||
return null; | |||
} | |||
public java.util.List<String> Ship.i(Set<String>[][] u) { | |||
return null; | |||
} | |||
} | |||
class Ship {} |
@@ -32,6 +32,18 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | |||
runTest("getMethod returning null"); | |||
} | |||
public void testMixedStyles_pr213751() { | |||
runTest("mixed styles"); | |||
} | |||
/* | |||
public void testHandles_pr249216c24() { | |||
runTest("handles - escaped square brackets"); | |||
IHierarchy top = AsmManager.lastActiveStructureModel.getHierarchy(); | |||
IProgramElement itd = findElementAtLine(top.getRoot(), 4); | |||
// System.out.println(itd.getHandleIdentifier()); | |||
assertEquals("<{Handles.java}Handles)Ship.i)\\[\\[String;>;", itd.getHandleIdentifier()); | |||
} | |||
*/ | |||
public void testFQType_pr256937() { | |||
runTest("fully qualified return type"); | |||
IHierarchy top = AsmManager.lastActiveStructureModel.getHierarchy(); |
@@ -23,6 +23,14 @@ | |||
<compile files="Ship.java ShipAccessor.java" options="-emacssym -1.5"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs163/pr213751" title="mixed styles"> | |||
<compile files="Foo.java" options="-emacssym -1.5"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs163/pr249216" title="handles - escaped square brackets"> | |||
<compile files="Handles.java" options="-emacssym -1.5"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs163/pr254207" title="ordering issue"> | |||
<compile files="Abstract.java Concrete.java" options="-1.5 -proceedOnError -Xset:pipelineCompilation=false"> | |||
<message kind="error" line="1" text="Bound mismatch"/> |