From 2d3001e1f6949e3d9d50e7703e3c15d3a3376c25 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 4 Feb 2009 20:20:25 +0000 Subject: [PATCH] 263487: test and fix --- tests/multiIncremental/importProb/base/src/p/B.java | 3 +++ tests/multiIncremental/importProb/base/src/p/Code.java | 9 +++++++++ tests/multiIncremental/importProb/base/src/q/Asp.java | 9 +++++++++ tests/multiIncremental/importProb/inc1/src/p/Code.java | 10 ++++++++++ tests/multiIncremental/importProb2/base/src/x/X.java | 9 +++++++++ 5 files changed, 40 insertions(+) create mode 100644 tests/multiIncremental/importProb/base/src/p/B.java create mode 100644 tests/multiIncremental/importProb/base/src/p/Code.java create mode 100644 tests/multiIncremental/importProb/base/src/q/Asp.java create mode 100644 tests/multiIncremental/importProb/inc1/src/p/Code.java create mode 100644 tests/multiIncremental/importProb2/base/src/x/X.java diff --git a/tests/multiIncremental/importProb/base/src/p/B.java b/tests/multiIncremental/importProb/base/src/p/B.java new file mode 100644 index 000000000..2558bd00f --- /dev/null +++ b/tests/multiIncremental/importProb/base/src/p/B.java @@ -0,0 +1,3 @@ +package p; +public class B { +} diff --git a/tests/multiIncremental/importProb/base/src/p/Code.java b/tests/multiIncremental/importProb/base/src/p/Code.java new file mode 100644 index 000000000..c8bf798c8 --- /dev/null +++ b/tests/multiIncremental/importProb/base/src/p/Code.java @@ -0,0 +1,9 @@ +package p; +import q.Asp; +import p.B; + +public class Code { + public void foo() throws IllegalAccessException { + throw new IllegalAccessException(); + } +} diff --git a/tests/multiIncremental/importProb/base/src/q/Asp.java b/tests/multiIncremental/importProb/base/src/q/Asp.java new file mode 100644 index 000000000..47f51274c --- /dev/null +++ b/tests/multiIncremental/importProb/base/src/q/Asp.java @@ -0,0 +1,9 @@ +package q; +import p.Code; + +public aspect Asp { + static int I = 5; +//before():staticinitialization(Code){} +} + + diff --git a/tests/multiIncremental/importProb/inc1/src/p/Code.java b/tests/multiIncremental/importProb/inc1/src/p/Code.java new file mode 100644 index 000000000..fa7061131 --- /dev/null +++ b/tests/multiIncremental/importProb/inc1/src/p/Code.java @@ -0,0 +1,10 @@ +package p; + +import q.Asp; +import p.B; + +public class Code { + public void foo() throws IllegalAccessException { + throw new IllegalAccessException(); + } +} diff --git a/tests/multiIncremental/importProb2/base/src/x/X.java b/tests/multiIncremental/importProb2/base/src/x/X.java new file mode 100644 index 000000000..ef0883ace --- /dev/null +++ b/tests/multiIncremental/importProb2/base/src/x/X.java @@ -0,0 +1,9 @@ +package x; + +import java.util.ArrayList; + +public aspect X { +// before(): within(!X) {} +declare soft : IllegalAccessException : execution( * *(..) ); + +} -- 2.39.5