@@ -0,0 +1,4 @@ | |||
public class A<T extends M> { | |||
public void a(T t) { | |||
} | |||
} |
@@ -0,0 +1,5 @@ | |||
public class B<T extends M> extends A<T> { | |||
public void b() { | |||
a(null); | |||
} | |||
} |
@@ -0,0 +1 @@ | |||
public class M {} |
@@ -0,0 +1,10 @@ | |||
import java.lang.annotation.*; | |||
import org.aspectj.lang.annotation.*; | |||
@Aspect | |||
public class MyAspect { | |||
@Before("call(* *.*(..))") | |||
public void myAdvice() { | |||
System.out.println(); | |||
} | |||
} |
@@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; | |||
*/ | |||
public class Ajc1611Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | |||
public void testMissingType_332388() { | |||
runTest("pr332388"); | |||
} | |||
public void testDeclareField_328840() { | |||
runTest("pr328840"); | |||
} |
@@ -13,4 +13,13 @@ | |||
</stdout></run> | |||
</ajc-test> | |||
<ajc-test dir="bugs1611/pr332388" title="pr332388"> | |||
<compile files="M.java" outjar="M.jar" options="-1.5"/> | |||
<compile files="A.java B.java" classpath="M.jar" outjar="AB.jar" options="-1.5"/> | |||
<compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/> | |||
<compile files="" aspectpath="aspects.jar" inpath="AB.jar" options="-1.5"> | |||
<message kind="error" text="Unable to find type for generic bound. Missing type is M"/> | |||
</compile> | |||
</ajc-test> | |||
</suite> |