--- /dev/null
+public aspect Code {
+
+ static int[] a = new int[]{1,2,3};
+
+ static void f(){
+ System.out.println(a[0]);
+ new Test(a[0]++);
+ System.out.println(a[0]);
+ }
+
+ before(): call(Test.new(..)) {
+ System.out.println("advice");
+ }
+
+ public static void main(String []argv) {
+ f();
+ }
+}
+
+class Test {
+ Test(int i) {}
+}
*/
public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testVerifyError_315398() {
+ runTest("verifyerror");
+ }
+
public void testRawTypePointcut_327134() {
runTest("rawtype pointcut");
}
<suite>
+<ajc-test dir="bugs1612/pr315398" title="verifyerror">
+<compile files="Code.java" options="-1.5">
+</compile>
+<run class="Code">
+<stdout>
+<line text="1"/>
+<line text="advice"/>
+<line text="2"/>
+</stdout></run>
+</ajc-test>
+
<ajc-test dir="bugs1612/pr335810" title="rawtype warning">
<compile files="One.java" options="-1.5 -warn:+raw -warn:+warningToken">
</compile>