From: aclement Date: Thu, 22 Apr 2010 02:24:42 +0000 (+0000) Subject: 310043: override final rogue message X-Git-Tag: V1_6_9M2~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef9124cf8c379663c9cd477384983f03df7e7263;p=aspectj.git 310043: override final rogue message --- 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 Binary files /dev/null and b/tests/bugs169/pr310043/code.jar 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 @@ + + + + +