]> source.dussan.org Git - aspectj.git/commitdiff
336147 - tests
authoraclement <aclement>
Thu, 3 Feb 2011 00:55:53 +0000 (00:55 +0000)
committeraclement <aclement>
Thu, 3 Feb 2011 00:55:53 +0000 (00:55 +0000)
tests/multiIncremental/pr336147/base/src/City_Roo_Op4j.java [new file with mode: 0644]
tests/multiIncremental/pr336147/inc1/src/Test.java [new file with mode: 0644]
tests/multiIncremental/pr336147_2/base/src/City.java [new file with mode: 0644]
tests/multiIncremental/pr336147_2/base/src/City_Roo_Op4j.java [new file with mode: 0644]
tests/multiIncremental/pr336147_2/inc1/src/Test.java [new file with mode: 0644]
tests/multiIncremental/pr336147_3/base/src/City.java [new file with mode: 0644]
tests/multiIncremental/pr336147_3/base/src/City_Roo_Op4j.java [new file with mode: 0644]
tests/multiIncremental/pr336147_3/base/src/Test.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java

diff --git a/tests/multiIncremental/pr336147/base/src/City_Roo_Op4j.java b/tests/multiIncremental/pr336147/base/src/City_Roo_Op4j.java
new file mode 100644 (file)
index 0000000..b8a62e6
--- /dev/null
@@ -0,0 +1,9 @@
+
+privileged aspect City_Roo_Op4j {
+    public static class City.Keys {
+        public static final int x() { return 9; } 
+    }
+}
+
+class City { }
+
diff --git a/tests/multiIncremental/pr336147/inc1/src/Test.java b/tests/multiIncremental/pr336147/inc1/src/Test.java
new file mode 100644 (file)
index 0000000..1d74dc7
--- /dev/null
@@ -0,0 +1,5 @@
+public class Test {
+    public static void main(String[] args) { 
+        City.Keys.x();   
+    }
+}
diff --git a/tests/multiIncremental/pr336147_2/base/src/City.java b/tests/multiIncremental/pr336147_2/base/src/City.java
new file mode 100644 (file)
index 0000000..0253a81
--- /dev/null
@@ -0,0 +1,3 @@
+
+class City { }
+
diff --git a/tests/multiIncremental/pr336147_2/base/src/City_Roo_Op4j.java b/tests/multiIncremental/pr336147_2/base/src/City_Roo_Op4j.java
new file mode 100644 (file)
index 0000000..7596715
--- /dev/null
@@ -0,0 +1,7 @@
+
+privileged aspect City_Roo_Op4j {
+    public static class City.Keys {
+        public static final int x() { return 9; } 
+    }
+}
+
diff --git a/tests/multiIncremental/pr336147_2/inc1/src/Test.java b/tests/multiIncremental/pr336147_2/inc1/src/Test.java
new file mode 100644 (file)
index 0000000..1d74dc7
--- /dev/null
@@ -0,0 +1,5 @@
+public class Test {
+    public static void main(String[] args) { 
+        City.Keys.x();   
+    }
+}
diff --git a/tests/multiIncremental/pr336147_3/base/src/City.java b/tests/multiIncremental/pr336147_3/base/src/City.java
new file mode 100644 (file)
index 0000000..0253a81
--- /dev/null
@@ -0,0 +1,3 @@
+
+class City { }
+
diff --git a/tests/multiIncremental/pr336147_3/base/src/City_Roo_Op4j.java b/tests/multiIncremental/pr336147_3/base/src/City_Roo_Op4j.java
new file mode 100644 (file)
index 0000000..7596715
--- /dev/null
@@ -0,0 +1,7 @@
+
+privileged aspect City_Roo_Op4j {
+    public static class City.Keys {
+        public static final int x() { return 9; } 
+    }
+}
+
diff --git a/tests/multiIncremental/pr336147_3/base/src/Test.java b/tests/multiIncremental/pr336147_3/base/src/Test.java
new file mode 100644 (file)
index 0000000..1d74dc7
--- /dev/null
@@ -0,0 +1,5 @@
+public class Test {
+    public static void main(String[] args) { 
+        City.Keys.x();   
+    }
+}
index 247af636914d5c066fb66d074a4f58755c1f6b50..10fd73210aff884d9067cffd3de4816a5f778c96 100644 (file)
@@ -83,6 +83,44 @@ public class IncrementalCompilationTests extends AbstractMultiProjectIncremental
                assertContains("B.java:4:0::0 Unhandled exception type IOException", getErrorMessages(p).get(0));
        }
 
+       public void testITIT_336147() throws Exception {
+               String p = "pr336147";
+               initialiseProject(p);
+               build(p);
+               checkWasFullBuild();
+               assertNoErrors(p);
+               checkCompileWeaveCount(p, 1, 3);
+               alter(p, "inc1");
+               build(p);
+               checkWasntFullBuild();
+               assertNoErrors(p);
+               checkCompileWeaveCount(p, 1, 1);
+       }
+
+       public void testITIT_336147_2() throws Exception {
+               String p = "pr336147_2";
+               initialiseProject(p);
+               build(p);
+               checkWasFullBuild();
+               assertNoErrors(p);
+               checkCompileWeaveCount(p, 2, 3);
+               alter(p, "inc1");
+               build(p);
+               checkWasntFullBuild();
+               assertNoErrors(p);
+               checkCompileWeaveCount(p, 1, 1);
+       }
+
+       public void testITIT_336147_3() throws Exception {
+               AjdeInteractionTestbed.VERBOSE = true;
+               String p = "pr336147_3";
+               initialiseProject(p);
+               build(p);
+               checkWasFullBuild();
+               assertNoErrors(p);
+               checkCompileWeaveCount(p, 3, 4);
+       }
+
        public void testDeclareFieldMinus() throws Exception {
                String p = "annoRemoval";
                initialiseProject(p);