From 864b70d3a3e6f32d874acddaff17f21694d2b08f Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 3 Apr 2006 15:23:44 +0000 Subject: [PATCH] testcode for 133532 (case 2 is simpler) --- tests/multiIncremental/PR133532/base/pkg/A.aj | 10 ++++++++++ .../PR133532/base/pkg/AbstractClass.java | 13 +++++++++++++ tests/multiIncremental/PR133532/inc1/pkg/A.aj | 10 ++++++++++ .../PR133532/inc2/pkg/AbstractClass.java | 13 +++++++++++++ tests/multiIncremental/pr133532_2/base/pkg/A.aj | 9 +++++++++ .../pr133532_2/base/pkg/AbstractClass.java | 13 +++++++++++++ tests/multiIncremental/pr133532_2/inc1/pkg/A.aj | 10 ++++++++++ .../pr133532_2/inc2/pkg/AbstractClass.java | 13 +++++++++++++ 8 files changed, 91 insertions(+) create mode 100644 tests/multiIncremental/PR133532/base/pkg/A.aj create mode 100644 tests/multiIncremental/PR133532/base/pkg/AbstractClass.java create mode 100644 tests/multiIncremental/PR133532/inc1/pkg/A.aj create mode 100644 tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java create mode 100644 tests/multiIncremental/pr133532_2/base/pkg/A.aj create mode 100644 tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java create mode 100644 tests/multiIncremental/pr133532_2/inc1/pkg/A.aj create mode 100644 tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java diff --git a/tests/multiIncremental/PR133532/base/pkg/A.aj b/tests/multiIncremental/PR133532/base/pkg/A.aj new file mode 100644 index 000000000..bd4c2ba34 --- /dev/null +++ b/tests/multiIncremental/PR133532/base/pkg/A.aj @@ -0,0 +1,10 @@ +package pkg; + +public privileged aspect A { + + public static int F_PRIVILEGED = 0x8000; + + before() : execution(int AbstractClass.getModifiers()) { + int i = F_PRIVILEGED; + } +} diff --git a/tests/multiIncremental/PR133532/base/pkg/AbstractClass.java b/tests/multiIncremental/PR133532/base/pkg/AbstractClass.java new file mode 100644 index 000000000..185ca3702 --- /dev/null +++ b/tests/multiIncremental/PR133532/base/pkg/AbstractClass.java @@ -0,0 +1,13 @@ +package pkg; + +public abstract class AbstractClass { + + public int getModifiers() { + return 1; + } + + public void handleFieldChanged() { + + } + +} diff --git a/tests/multiIncremental/PR133532/inc1/pkg/A.aj b/tests/multiIncremental/PR133532/inc1/pkg/A.aj new file mode 100644 index 000000000..37723778e --- /dev/null +++ b/tests/multiIncremental/PR133532/inc1/pkg/A.aj @@ -0,0 +1,10 @@ +package pkg; + +public privileged aspect A { + + public static int AbstractClass.F_PRIVILEGED = 0x8000; + + before() : execution(int AbstractClass.getModifiers()) { + int i = AbstractClass.F_PRIVILEGED; + } +} diff --git a/tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java b/tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java new file mode 100644 index 000000000..e451a0e0d --- /dev/null +++ b/tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java @@ -0,0 +1,13 @@ +package pkg; + +public abstract class AbstractClass { + + public int getModifiers() { + return 1; + } + + public void handleFieldChanged2() { + + } + +} diff --git a/tests/multiIncremental/pr133532_2/base/pkg/A.aj b/tests/multiIncremental/pr133532_2/base/pkg/A.aj new file mode 100644 index 000000000..add5c3cea --- /dev/null +++ b/tests/multiIncremental/pr133532_2/base/pkg/A.aj @@ -0,0 +1,9 @@ +package pkg; + +public privileged aspect A { + + public static int AbstractClass.F_PRIVILEGED = 0x8000; + + //int i = AbstractClass.F_PRIVILEGED; + +} diff --git a/tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java b/tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java new file mode 100644 index 000000000..a8baba11e --- /dev/null +++ b/tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java @@ -0,0 +1,13 @@ +package pkg; + +public class AbstractClass { +// +// public int getModifiers() { +// return 1; +// } +// +// public void handleFieldChanged() { +// +// } +// +} diff --git a/tests/multiIncremental/pr133532_2/inc1/pkg/A.aj b/tests/multiIncremental/pr133532_2/inc1/pkg/A.aj new file mode 100644 index 000000000..37723778e --- /dev/null +++ b/tests/multiIncremental/pr133532_2/inc1/pkg/A.aj @@ -0,0 +1,10 @@ +package pkg; + +public privileged aspect A { + + public static int AbstractClass.F_PRIVILEGED = 0x8000; + + before() : execution(int AbstractClass.getModifiers()) { + int i = AbstractClass.F_PRIVILEGED; + } +} diff --git a/tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java b/tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java new file mode 100644 index 000000000..c293d02f6 --- /dev/null +++ b/tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java @@ -0,0 +1,13 @@ +package pkg; + +public class AbstractClass { +// +// public int getModifiers() { +// return 1; +// } +// +// public void handleFieldChanged2() { +// +// } + public void foo() {} +} -- 2.39.5