aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-24 09:27:06 +0000
committeraclement <aclement>2005-11-24 09:27:06 +0000
commit76d7e83c7fdce7555ce9d9c6ca5bfaaf31d234db (patch)
tree32c15c85d7c0593cfdf3ebc82582e7f3d88970db /tests/java5
parent96ff35e46ffd3ecf9f437465629e2ec1140c9267 (diff)
downloadaspectj-76d7e83c7fdce7555ce9d9c6ca5bfaaf31d234db.tar.gz
aspectj-76d7e83c7fdce7555ce9d9c6ca5bfaaf31d234db.zip
matthews patches from 116899
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/Main.java29
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/MessageHolder.java1
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/aop-messagehandler.xml6
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/aop-silent.xml1
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml2
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml2
6 files changed, 38 insertions, 3 deletions
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/Main.java b/tests/java5/ataspectj/ataspectj/ltwlog/Main.java
new file mode 100644
index 000000000..7bbffd74b
--- /dev/null
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/Main.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2005 Contributors.
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Alexandre Vasseur initial implementation
+ *******************************************************************************/
+package ataspectj.ltwlog;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+
+/**
+ * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
+ */
+public class Main {
+
+ void target() {};
+
+ public static void main(String args[]) throws Throwable {
+ new Main().target();
+ }
+
+
+}
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/MessageHolder.java b/tests/java5/ataspectj/ataspectj/ltwlog/MessageHolder.java
index 4f245ab35..03983cfc4 100644
--- a/tests/java5/ataspectj/ataspectj/ltwlog/MessageHolder.java
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/MessageHolder.java
@@ -28,6 +28,7 @@ public class MessageHolder extends DefaultMessageHandler {
static List s_messages = new ArrayList();
public MessageHolder() {
+ System.out.println("MessageHolder.MessageHolder()");
}
public boolean handleMessage(IMessage message) throws AbortException {
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-messagehandler.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-messagehandler.xml
new file mode 100644
index 000000000..16ca3d7c8
--- /dev/null
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-messagehandler.xml
@@ -0,0 +1,6 @@
+<aspectj>
+ <weaver options="-XmessageHandlerClass:ataspectj.ltwlog.MessageHolder -showWeaveInfo -verbose"/>
+ <aspects>
+ <aspect name="ataspectj.ltwlog.Aspect1"/>
+ </aspects>
+</aspectj>
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-silent.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-silent.xml
index 6e320f1d2..0b0a8622f 100644
--- a/tests/java5/ataspectj/ataspectj/ltwlog/aop-silent.xml
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-silent.xml
@@ -1,5 +1,4 @@
<aspectj>
- <weaver options="-XmessageHandlerClass:ataspectj.ltwlog.MessageHolder"/>
<aspects>
<aspect name="ataspectj.ltwlog.Aspect1"/>
</aspects>
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml
index c7756c8e5..7cd1b4629 100644
--- a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml
@@ -1,5 +1,5 @@
<aspectj>
- <weaver options="-XmessageHandlerClass:ataspectj.ltwlog.MessageHolder -verbose"/>
+ <weaver options="-verbose"/>
<aspects>
<aspect name="ataspectj.ltwlog.Aspect1"/>
</aspects>
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml
index 492d6df63..557ad27a5 100644
--- a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml
@@ -1,5 +1,5 @@
<aspectj>
- <weaver options="-XmessageHandlerClass:ataspectj.ltwlog.MessageHolder -showWeaveInfo -verbose -Xreweavable"/>
+ <weaver options="-showWeaveInfo -verbose"/>
<aspects>
<aspect name="ataspectj.ltwlog.Aspect1"/>
</aspects>