Browse Source

213751: 249216: tests

tags/V1_6_3rc1
aclement 15 years ago
parent
commit
cd586e1891

+ 14
- 0
tests/bugs163/pr213751/Foo.java View File

@@ -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();
}
}



+ 12
- 0
tests/bugs163/pr249216/Handles.java View File

@@ -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 {}

+ 12
- 0
tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java View File

@@ -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();

+ 8
- 0
tests/src/org/aspectj/systemtest/ajc163/ajc163.xml View File

@@ -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"/>

Loading…
Cancel
Save