Browse Source

315398: remove dirty hack from the olden days

tags/V1_6_12M1
aclement 13 years ago
parent
commit
464d48469d

+ 19
- 0
tests/bugs1612/pr315398/Code2.java View File

@@ -0,0 +1,19 @@
public aspect Code2 {

static int[] a = new int[]{1,2,3};

static void f(){
new Test(a[0]++);
}

after() returning(Object obj) : call(Test.new(..)) {
}

public static void main(String []argv) {
f();
}
}

class Test {
Test(int i) {}
}

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java View File

@@ -25,6 +25,10 @@ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("verifyerror");
}
public void testVerifyError_315398_2() {
runTest("verifyerror - 2");
}
public void testRawTypePointcut_327134() {
runTest("rawtype pointcut");
}

+ 6
- 0
tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml View File

@@ -13,6 +13,12 @@
</stdout></run>
</ajc-test>

<ajc-test dir="bugs1612/pr315398" title="verifyerror - 2">
<compile files="Code2.java" options="-1.5">
</compile>
<run class="Code2"></run>
</ajc-test>

<ajc-test dir="bugs1612/pr335810" title="rawtype warning">
<compile files="One.java" options="-1.5 -warn:+raw -warn:+warningToken">
</compile>

Loading…
Cancel
Save