Browse Source

332388: test and fix

tags/V1_6_11RC1
aclement 13 years ago
parent
commit
0247be6dac

+ 6
- 0
tests/bugs1611/pr332388_2/A.java View File

@@ -0,0 +1,6 @@
public class A<T> {
public void a(Class<? extends M> list) {}
public void x() {
a(null);
}
}

+ 1
- 0
tests/bugs1611/pr332388_2/M.java View File

@@ -0,0 +1 @@
public class M {}

+ 9
- 0
tests/bugs1611/pr332388_2/MyAspect.java View File

@@ -0,0 +1,9 @@
import org.aspectj.lang.annotation.*;

@Aspect
public class MyAspect {
@Before("call(* *.*(..)) && target(x)")
public void myAdvice(CharSequence x) {
System.out.println();
}
}

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java View File

@@ -25,6 +25,10 @@ public class Ajc1611Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("pr332388");
}

public void testMissingType_332388_2() {
runTest("pr332388 - 2");
}

public void testDeclareField_328840() {
runTest("pr328840");
}

+ 9
- 0
tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml View File

@@ -22,4 +22,13 @@
</compile>
</ajc-test>
<ajc-test dir="bugs1611/pr332388_2" title="pr332388 - 2">
<compile files="M.java" outjar="M.jar" options="-1.5"/>
<compile files="A.java" classpath="M.jar" outjar="A.jar" options="-1.5"/>
<compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/>
<compile files="" aspectpath="aspects.jar" inpath="A.jar" options="-1.5">
<message kind="error" text="Unable to find type (for bound): M"/>
</compile>
</ajc-test>
</suite>

Loading…
Cancel
Save