]> source.dussan.org Git - aspectj.git/commitdiff
251940: testcode
authoraclement <aclement>
Fri, 24 Oct 2008 20:38:04 +0000 (20:38 +0000)
committeraclement <aclement>
Fri, 24 Oct 2008 20:38:04 +0000 (20:38 +0000)
tests/bugs163/pr251940/F.aj [deleted file]
tests/multiIncremental/pr251940/base/src/F.aj [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java

diff --git a/tests/bugs163/pr251940/F.aj b/tests/bugs163/pr251940/F.aj
deleted file mode 100644 (file)
index fb1645b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-public aspect F implements Comparable pertarget(within(F)) {
-
-}
diff --git a/tests/multiIncremental/pr251940/base/src/F.aj b/tests/multiIncremental/pr251940/base/src/F.aj
new file mode 100644 (file)
index 0000000..00a9a47
--- /dev/null
@@ -0,0 +1,5 @@
+public aspect F implements Comparable pertarget(within(F)) {
+
+}
+
+
index 477022551f5fe6b8b95cc7b79f24c35bf0b740f9..756f05ddf45711d8a00f5d0115e189d4a655d7d0 100644 (file)
@@ -18,10 +18,6 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
-       // public void testImplementsPertarget_pr251940() {
-       // runTest("implements pertarget");
-       // }
-
        public void testBreakingRecovery_pr226163() {
                runTest("breaking recovery");
        }
index 01aa94b974f8f0cc1291956b4aa7fa2832bdde2b..cb5d11813743d51bd4bd3a735299dabf34c9346c 100644 (file)
@@ -2,10 +2,6 @@
 
 <suite>
 
-    <ajc-test dir="bugs163/pr251940" title="implements pertarget">
-      <compile files="F.aj" options="-1.5"/>
-    </ajc-test>
-
     <ajc-test dir="bugs163/pr226163" title="breaking recovery">
       <compile files="Code.java" options="-1.5">
         <message kind="error" line="4" text="Syntax error"/>
index d751f3798c7e7a0d5e3641a0b43e70dbd406f4eb..01e34e86ba9fcf898090322cd262bf8c8ca58957 100644 (file)
@@ -171,6 +171,13 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
                // incomplete
        }
 
+       public void testNullDelegateBrokenCode_pr251940() {
+               String p = "pr251940";
+               initialiseProject(p);
+               build(p);
+               checkForError(p, "The type F must implement the inherited");
+       }
+
        public void testBeanExample() throws Exception {
                String p = "BeanExample";
                initialiseProject(p);