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