]> source.dussan.org Git - aspectj.git/commitdiff
336158 - testcode
authoraclement <aclement>
Thu, 3 Feb 2011 02:37:40 +0000 (02:37 +0000)
committeraclement <aclement>
Thu, 3 Feb 2011 02:37:40 +0000 (02:37 +0000)
tests/multiIncremental/pr336158/base/src/City$Keys.class [new file with mode: 0644]
tests/multiIncremental/pr336158/base/src/City.class [new file with mode: 0644]
tests/multiIncremental/pr336158/base/src/City.java [new file with mode: 0644]
tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class [new file with mode: 0644]
tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java [new file with mode: 0644]
tests/multiIncremental/pr336158/base/src/Function.class [new file with mode: 0644]
tests/multiIncremental/pr336158/base/src/Function.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java

diff --git a/tests/multiIncremental/pr336158/base/src/City$Keys.class b/tests/multiIncremental/pr336158/base/src/City$Keys.class
new file mode 100644 (file)
index 0000000..3f0052b
Binary files /dev/null and b/tests/multiIncremental/pr336158/base/src/City$Keys.class differ
diff --git a/tests/multiIncremental/pr336158/base/src/City.class b/tests/multiIncremental/pr336158/base/src/City.class
new file mode 100644 (file)
index 0000000..c24cd36
Binary files /dev/null and b/tests/multiIncremental/pr336158/base/src/City.class differ
diff --git a/tests/multiIncremental/pr336158/base/src/City.java b/tests/multiIncremental/pr336158/base/src/City.java
new file mode 100644 (file)
index 0000000..a8d3293
--- /dev/null
@@ -0,0 +1,6 @@
+public class City {
+
+    public static void main(String[] args) { 
+        Keys.CITY.get();  // Keys.City cannot be resolved
+    }
+}
diff --git a/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class b/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class
new file mode 100644 (file)
index 0000000..22e3d47
Binary files /dev/null and b/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class differ
diff --git a/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java b/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java
new file mode 100644 (file)
index 0000000..9fbea92
--- /dev/null
@@ -0,0 +1,5 @@
+privileged aspect City_Roo_Op4j {
+    public static class City.Keys {
+        public static final Function<Object, City> CITY = null;
+    }
+}
diff --git a/tests/multiIncremental/pr336158/base/src/Function.class b/tests/multiIncremental/pr336158/base/src/Function.class
new file mode 100644 (file)
index 0000000..a19801d
Binary files /dev/null and b/tests/multiIncremental/pr336158/base/src/Function.class differ
diff --git a/tests/multiIncremental/pr336158/base/src/Function.java b/tests/multiIncremental/pr336158/base/src/Function.java
new file mode 100644 (file)
index 0000000..2e9157c
--- /dev/null
@@ -0,0 +1 @@
+class Function<A,B> { public void get() {}}
index 10fd73210aff884d9067cffd3de4816a5f778c96..25642f6f3702b1ab7f7b54e029d2366f72f42201 100644 (file)
@@ -83,6 +83,15 @@ public class IncrementalCompilationTests extends AbstractMultiProjectIncremental
                assertContains("B.java:4:0::0 Unhandled exception type IOException", getErrorMessages(p).get(0));
        }
 
+       public void testITIT_336158() throws Exception {
+               String p = "pr336158";
+               initialiseProject(p);
+               build(p);
+               checkWasFullBuild();
+               assertNoErrors(p);
+               checkCompileWeaveCount(p, 3, 4);
+       }
+
        public void testITIT_336147() throws Exception {
                String p = "pr336147";
                initialiseProject(p);