]> source.dussan.org Git - aspectj.git/commitdiff
310043: override final rogue message
authoraclement <aclement>
Thu, 22 Apr 2010 02:24:42 +0000 (02:24 +0000)
committeraclement <aclement>
Thu, 22 Apr 2010 02:24:42 +0000 (02:24 +0000)
tests/bugs169/pr310043/A.java [new file with mode: 0644]
tests/bugs169/pr310043/B.java [new file with mode: 0644]
tests/bugs169/pr310043/I.java [new file with mode: 0644]
tests/bugs169/pr310043/X.java [new file with mode: 0644]
tests/bugs169/pr310043/buildjar.bat [new file with mode: 0644]
tests/bugs169/pr310043/code.jar [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
tests/src/org/aspectj/systemtest/ajc169/ajc169.xml

diff --git a/tests/bugs169/pr310043/A.java b/tests/bugs169/pr310043/A.java
new file mode 100644 (file)
index 0000000..73c334c
--- /dev/null
@@ -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 (file)
index 0000000..3979b54
--- /dev/null
@@ -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 (file)
index 0000000..5820ccb
--- /dev/null
@@ -0,0 +1 @@
+interface I {}
diff --git a/tests/bugs169/pr310043/X.java b/tests/bugs169/pr310043/X.java
new file mode 100644 (file)
index 0000000..d58c5b2
--- /dev/null
@@ -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 (file)
index 0000000..ac77bb5
--- /dev/null
@@ -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 (file)
index 0000000..47803ad
Binary files /dev/null and b/tests/bugs169/pr310043/code.jar differ
index be42a3e9d0913ab1477b4ec8d6440707fd92f297..c648ad1cf80cce3b89cdbc940529512eddcf393a 100644 (file)
@@ -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");
        }
index 0b0fe443e8ba5d1434042e952760cf84bfb52767..06daa16cd1ac608094ec67b900105d6269d3b827 100644 (file)
@@ -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">