aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2010-04-22 02:24:42 +0000
committeraclement <aclement>2010-04-22 02:24:42 +0000
commitef9124cf8c379663c9cd477384983f03df7e7263 (patch)
tree38a36d57527170291f518d168b8a2ad28bc59221 /tests
parentf97adb2888cf3fb5583af0013fa0e583ed191944 (diff)
downloadaspectj-ef9124cf8c379663c9cd477384983f03df7e7263.tar.gz
aspectj-ef9124cf8c379663c9cd477384983f03df7e7263.zip
310043: override final rogue message
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs169/pr310043/A.java2
-rw-r--r--tests/bugs169/pr310043/B.java5
-rw-r--r--tests/bugs169/pr310043/I.java1
-rw-r--r--tests/bugs169/pr310043/X.java4
-rw-r--r--tests/bugs169/pr310043/buildjar.bat1
-rw-r--r--tests/bugs169/pr310043/code.jarbin0 -> 2845 bytes
-rw-r--r--tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc169/ajc169.xml5
8 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs169/pr310043/A.java b/tests/bugs169/pr310043/A.java
new file mode 100644
index 000000000..73c334c20
--- /dev/null
+++ b/tests/bugs169/pr310043/A.java
@@ -0,0 +1,2 @@
+class A implements I {
+}
diff --git a/tests/bugs169/pr310043/B.java b/tests/bugs169/pr310043/B.java
new file mode 100644
index 000000000..3979b54e6
--- /dev/null
+++ b/tests/bugs169/pr310043/B.java
@@ -0,0 +1,5 @@
+class B {
+ public void test() {
+ A a = new A();
+ }
+}
diff --git a/tests/bugs169/pr310043/I.java b/tests/bugs169/pr310043/I.java
new file mode 100644
index 000000000..5820ccb1f
--- /dev/null
+++ b/tests/bugs169/pr310043/I.java
@@ -0,0 +1 @@
+interface I {}
diff --git a/tests/bugs169/pr310043/X.java b/tests/bugs169/pr310043/X.java
new file mode 100644
index 000000000..d58c5b284
--- /dev/null
+++ b/tests/bugs169/pr310043/X.java
@@ -0,0 +1,4 @@
+aspect X {
+ public final int I.hashCode() { return 1;}
+ // public int I.hashCode() { return 1;}
+} \ No newline at end of file
diff --git a/tests/bugs169/pr310043/buildjar.bat b/tests/bugs169/pr310043/buildjar.bat
new file mode 100644
index 000000000..ac77bb5c4
--- /dev/null
+++ b/tests/bugs169/pr310043/buildjar.bat
@@ -0,0 +1 @@
+ajc -1.5 A.java I.java X.java -outjar code.jar
diff --git a/tests/bugs169/pr310043/code.jar b/tests/bugs169/pr310043/code.jar
new file mode 100644
index 000000000..47803adf2
--- /dev/null
+++ b/tests/bugs169/pr310043/code.jar
Binary files differ
diff --git a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
index be42a3e9d..c648ad1cf 100644
--- a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
@@ -30,6 +30,10 @@ public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// runTest("advising privileged access method");
// }
+ public void testRogueError_310043() {
+ runTest("rogue error");
+ }
+
public void testItdMarkerAnnotations_309743() {
runTest("itd marker annotations - 1");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml
index 0b0fe443e..06daa16cd 100644
--- a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml
+++ b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml
@@ -2,6 +2,11 @@
<suite>
+ <ajc-test dir="bugs169/pr310043" title="rogue error">
+ <compile files="B.java" classpath="code.jar" aspectpath="code.jar"/>
+
+ </ajc-test>
+
<ajc-test dir="bugs169/pr309743" title="itd marker annotations - 1">
<compile files="A.java" options="-1.5"/>
<run class="A">