Преглед изворни кода

test for 148537

tags/PRE_PIPELINE
aclement пре 18 година
родитељ
комит
477c46dc2b

+ 8
- 0
tests/bugs153/pr148537/MyClass.java Прегледај датотеку

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

public class MyClass {

@Retention({RententionPolicy.RUNTIME})
private @interface MyAnnotation {
}
}

+ 1
- 0
tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java Прегледај датотеку

@@ -29,6 +29,7 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("verification problem"); // build the code
Utils.verifyClass(ajc,"mypackage.MyAspect"); // verify it <<< BRAND NEW VERIFY UTILITY FOR EVERYONE TO TRY ;)
}
// public void testIncorrectAnnotationValue_pr148537() { runTest("incorrect annotation value");}

/////////////////////////////////////////

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc153/ajc153.xml Прегледај датотеку

@@ -42,5 +42,9 @@
<compile files="MyAspect.java" options="-1.5 -XterminateAfterCompilation=true"/>
</ajc-test>
<ajc-test dir="bugs153/pr148537" title="incorrect annotation value">
<compile files="MyClass.java" options="-1.5"/>
</ajc-test>
</suite>

Loading…
Откажи
Сачувај