diff options
author | wisberg <wisberg> | 2003-03-10 23:25:43 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-03-10 23:25:43 +0000 |
commit | 844a0518daf0c0c83a61b58cc1f1107941f1b4c2 (patch) | |
tree | 6837f9a7df32e8b6c87bcebce9d1206ad4f4873b /tests/incremental | |
parent | c1361318351aeaa70c029bf68b698b26f5046cb4 (diff) | |
download | aspectj-844a0518daf0c0c83a61b58cc1f1107941f1b4c2.tar.gz aspectj-844a0518daf0c0c83a61b58cc1f1107941f1b4c2.zip |
stringliteral tests - unreproduced verify error from incremental compilation of change only to a sttring literal.
Diffstat (limited to 'tests/incremental')
4 files changed, 55 insertions, 0 deletions
diff --git a/tests/incremental/stringliteral/src/RunInjarMains.30.java b/tests/incremental/stringliteral/src/RunInjarMains.30.java new file mode 100644 index 000000000..586ff756e --- /dev/null +++ b/tests/incremental/stringliteral/src/RunInjarMains.30.java @@ -0,0 +1,8 @@ + +public aspect RunInjarMains { + before() : execution(static void packageOne.main(String[])) { + String[] args = new String[0]; + InjarOneMain.main(args); + InjarTwoMain.main(args); + } +}
\ No newline at end of file diff --git a/tests/incremental/stringliteral/src/TraceMains.java b/tests/incremental/stringliteral/src/TraceMains.java new file mode 100644 index 000000000..3c9a49bab --- /dev/null +++ b/tests/incremental/stringliteral/src/TraceMains.java @@ -0,0 +1,16 @@ + +import org.aspectj.testing.Tester; +import org.aspectj.lang.JoinPoint; + +public aspect TraceMains { + private static String className(JoinPoint.StaticPart jp) { + return jp.getSignature().getDeclaringType().getName(); + } + before() : execution(static void main(String[])) { + Tester.event("before main " + className(thisJoinPointStaticPart)); + } + after() returning: execution(static void main(String[])) { + Tester.event("after main " + className(thisJoinPointStaticPart)); + } + +}
\ No newline at end of file diff --git a/tests/incremental/stringliteral/src/packageOne/Main.20.java b/tests/incremental/stringliteral/src/packageOne/Main.20.java new file mode 100644 index 000000000..b2848f051 --- /dev/null +++ b/tests/incremental/stringliteral/src/packageOne/Main.20.java @@ -0,0 +1,16 @@ + +package packageOne; + +import org.aspectj.testing.Tester; + +public class Main { + public static void main(String[] args) { + for (int i = 0; i < args.length; i++) { + Tester.expectEvent(args[i]); + } + Tester.event("in longer packageOne.Main.main(..)"); + Tester.checkAllEvents(); + } +} + + diff --git a/tests/incremental/stringliteral/src/packageOne/Main.java b/tests/incremental/stringliteral/src/packageOne/Main.java new file mode 100644 index 000000000..d8315399f --- /dev/null +++ b/tests/incremental/stringliteral/src/packageOne/Main.java @@ -0,0 +1,15 @@ + +package packageOne; + +import org.aspectj.testing.Tester; + +public class Main { + public static void main(String[] args) { + for (int i = 0; i < args.length; i++) { + Tester.expectEvent(args[i]); + } + Tester.event("in packageOne.Main.main(..)"); + Tester.checkAllEvents(); + } +} + |