From edaba5751fe4faba5ef1f9c9d79b6c0e95963f86 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 3 Feb 2011 02:37:40 +0000 Subject: 336158 - testcode --- tests/multiIncremental/pr336158/base/src/City$Keys.class | Bin 0 -> 467 bytes tests/multiIncremental/pr336158/base/src/City.class | Bin 0 -> 846 bytes tests/multiIncremental/pr336158/base/src/City.java | 6 ++++++ .../pr336158/base/src/City_Roo_Op4j.class | Bin 0 -> 1950 bytes .../pr336158/base/src/City_Roo_Op4j.java | 5 +++++ tests/multiIncremental/pr336158/base/src/Function.class | Bin 0 -> 540 bytes tests/multiIncremental/pr336158/base/src/Function.java | 1 + .../incremental/tools/IncrementalCompilationTests.java | 9 +++++++++ 8 files changed, 21 insertions(+) create mode 100644 tests/multiIncremental/pr336158/base/src/City$Keys.class create mode 100644 tests/multiIncremental/pr336158/base/src/City.class create mode 100644 tests/multiIncremental/pr336158/base/src/City.java create mode 100644 tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class create mode 100644 tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java create mode 100644 tests/multiIncremental/pr336158/base/src/Function.class create mode 100644 tests/multiIncremental/pr336158/base/src/Function.java (limited to 'tests') diff --git a/tests/multiIncremental/pr336158/base/src/City$Keys.class b/tests/multiIncremental/pr336158/base/src/City$Keys.class new file mode 100644 index 000000000..3f0052b9e 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 index 000000000..c24cd36f1 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 index 000000000..a8d32933a --- /dev/null +++ b/tests/multiIncremental/pr336158/base/src/City.java @@ -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 index 000000000..22e3d47e9 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 index 000000000..9fbea9252 --- /dev/null +++ b/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java @@ -0,0 +1,5 @@ +privileged aspect City_Roo_Op4j { + public static class City.Keys { + public static final Function CITY = null; + } +} diff --git a/tests/multiIncremental/pr336158/base/src/Function.class b/tests/multiIncremental/pr336158/base/src/Function.class new file mode 100644 index 000000000..a19801d25 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 index 000000000..2e9157cfb --- /dev/null +++ b/tests/multiIncremental/pr336158/base/src/Function.java @@ -0,0 +1 @@ +class Function { public void get() {}} diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java index 10fd73210..25642f6f3 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java @@ -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); -- cgit v1.2.3