Kaynağa Gözat

377130 tests

tags/V1_7_0RC1
Andy Clement 12 yıl önce
ebeveyn
işleme
7aad69eae7

+ 11
- 0
tests/bugs170/pr377130/Foo.java Dosyayı Görüntüle

@@ -0,0 +1,11 @@
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface Anno {}

@Anno
aspect Foo {
public static void main(String []argv) {
System.out.println(Foo.class.getAnnotation(Anno.class));
}
}

+ 11
- 0
tests/bugs170/pr377130/Foo2.java Dosyayı Görüntüle

@@ -0,0 +1,11 @@
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface Anno {}

@Anno
privileged aspect Foo2 {
public static void main(String []argv) {
System.out.println(Foo2.class.getAnnotation(Anno.class));
}
}

+ 8
- 0
tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java Dosyayı Görüntüle

@@ -31,6 +31,14 @@ import org.aspectj.weaver.tools.StandardPointcutParser;
*/
public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {

// public void testLostAnnos_377130() {
// runTest("missing annos on priv aspects");
// }
//
// public void testLostAnnos_377130_2() {
// runTest("missing annos on priv aspects - 2");
// }

public void testAttributeErrorJ7() {
runTest("attribute issue with J7");
}

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

@@ -2,6 +2,22 @@

<suite>

<ajc-test dir="bugs170/pr377130" title="missing annos on priv aspects">
<compile files="Foo.java" options="-1.5"/>
<run class="Foo">
<stdout>
<line text="@Anno()"/></stdout>
</run>
</ajc-test>
<ajc-test dir="bugs170/pr377130" title="missing annos on priv aspects - 2">
<compile files="Foo2.java" options="-1.5"/>
<run class="Foo2">
<stdout>
<line text="@Anno()"/></stdout>
</run>
</ajc-test>

<ajc-test dir="bugs170/pr376351" title="attribute issue with J7">
<compile files="R.java R1.java" outjar="code.jar" options="-1.5"/>
<compile files="RAj.java" options="-1.7 -Xlint:ignore" outjar="aspects.jar" classpath="code.jar"/>

Loading…
İptal
Kaydet