Browse Source

377130 tests

tags/V1_7_0RC1
Andy Clement 12 years ago
parent
commit
7aad69eae7

+ 11
- 0
tests/bugs170/pr377130/Foo.java View File

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 View File

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 View File

*/ */
public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase { 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() { public void testAttributeErrorJ7() {
runTest("attribute issue with J7"); runTest("attribute issue with J7");
} }

+ 16
- 0
tests/src/org/aspectj/systemtest/ajc170/ajc170.xml View File



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

Loading…
Cancel
Save