]> source.dussan.org Git - aspectj.git/commitdiff
stringliteral tests - unreproduced verify error from incremental compilation of chang...
authorwisberg <wisberg>
Mon, 10 Mar 2003 23:25:43 +0000 (23:25 +0000)
committerwisberg <wisberg>
Mon, 10 Mar 2003 23:25:43 +0000 (23:25 +0000)
tests/incremental/stringliteral/src/RunInjarMains.30.java [new file with mode: 0644]
tests/incremental/stringliteral/src/TraceMains.java [new file with mode: 0644]
tests/incremental/stringliteral/src/packageOne/Main.20.java [new file with mode: 0644]
tests/incremental/stringliteral/src/packageOne/Main.java [new file with mode: 0644]

diff --git a/tests/incremental/stringliteral/src/RunInjarMains.30.java b/tests/incremental/stringliteral/src/RunInjarMains.30.java
new file mode 100644 (file)
index 0000000..586ff75
--- /dev/null
@@ -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 (file)
index 0000000..3c9a49b
--- /dev/null
@@ -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 (file)
index 0000000..b2848f0
--- /dev/null
@@ -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 (file)
index 0000000..d831539
--- /dev/null
@@ -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();
+    }
+}
+