Kaynağa Gözat

332388: test and fix

tags/V1_6_11RC1
aclement 13 yıl önce
ebeveyn
işleme
13fff7553a

+ 4
- 0
tests/bugs1611/pr332388/A.java Dosyayı Görüntüle

@@ -0,0 +1,4 @@
public class A<T extends M> {
public void a(T t) {
}
}

+ 5
- 0
tests/bugs1611/pr332388/B.java Dosyayı Görüntüle

@@ -0,0 +1,5 @@
public class B<T extends M> extends A<T> {
public void b() {
a(null);
}
}

+ 1
- 0
tests/bugs1611/pr332388/M.java Dosyayı Görüntüle

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

+ 10
- 0
tests/bugs1611/pr332388/MyAspect.java Dosyayı Görüntüle

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

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java Dosyayı Görüntüle

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

+ 9
- 0
tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml Dosyayı Görüntüle

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

Loading…
İptal
Kaydet