aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ltw
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ltw')
-rw-r--r--tests/ltw/AbstractAspect.aj16
-rw-r--r--tests/ltw/AbstractSuperAspect.aj16
-rw-r--r--tests/ltw/Aspect1.aj14
-rw-r--r--tests/ltw/Aspect2.aj14
-rw-r--r--tests/ltw/Aspect3.aj14
-rw-r--r--tests/ltw/Main.java14
-rw-r--r--tests/ltw/TestITDMethod.java14
-rw-r--r--tests/ltw/TestMain.java14
-rw-r--r--tests/ltw/folder.jar/Aspect1.aj14
-rw-r--r--tests/ltw/folder.jar/Aspect2.aj14
-rw-r--r--tests/ltw/folder.jar/Main.java14
-rw-r--r--tests/ltw/hier/child/Advisor.aj4
-rw-r--r--tests/ltw/hier/child/Executor.aj4
-rw-r--r--tests/ltw/hier/top/SimpleMain.aj4
-rw-r--r--tests/ltw/hier/util/A.aj4
-rw-r--r--tests/ltw/hier/util/T.aj4
-rw-r--r--tests/ltw/pakkage/Aspect3.aj16
17 files changed, 97 insertions, 97 deletions
diff --git a/tests/ltw/AbstractAspect.aj b/tests/ltw/AbstractAspect.aj
index 6a735f268..10c58444a 100644
--- a/tests/ltw/AbstractAspect.aj
+++ b/tests/ltw/AbstractAspect.aj
@@ -1,11 +1,11 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
@@ -17,12 +17,12 @@ public abstract aspect AbstractAspect {
* These should not take effect unless a concrete sub-aspect is defined
*/
declare parents : TestITDMethod implements Runnable;
-
+
declare soft : InvocationTargetException : execution(public void TestITDMethod.*());
declare warning : execution(public void main(..)) :
"AbstractAspect_main";
-
+
/*
* This should always take effect
*/
diff --git a/tests/ltw/AbstractSuperAspect.aj b/tests/ltw/AbstractSuperAspect.aj
index 705085848..9cf0b5d0c 100644
--- a/tests/ltw/AbstractSuperAspect.aj
+++ b/tests/ltw/AbstractSuperAspect.aj
@@ -1,19 +1,19 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
public abstract aspect AbstractSuperAspect {
-
+
protected abstract pointcut scope ();
-
+
before () : execution(void test1()) && scope() {
System.err.println("AbstractSuperAspect.before_" + thisJoinPoint.getSignature().getName());
}
diff --git a/tests/ltw/Aspect1.aj b/tests/ltw/Aspect1.aj
index 173cb8603..0fa7a8877 100644
--- a/tests/ltw/Aspect1.aj
+++ b/tests/ltw/Aspect1.aj
@@ -1,18 +1,18 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
import org.aspectj.lang.JoinPoint;
public aspect Aspect1 {
-
+
before () : execution(void Main.test1()) {
System.err.println("Aspect1.before_" + thisJoinPoint.getSignature().getName());
}
diff --git a/tests/ltw/Aspect2.aj b/tests/ltw/Aspect2.aj
index 519a47eeb..9c7de2933 100644
--- a/tests/ltw/Aspect2.aj
+++ b/tests/ltw/Aspect2.aj
@@ -1,18 +1,18 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
import org.aspectj.lang.JoinPoint;
public aspect Aspect2 {
-
+
before () : execution(void Main.test2()){
System.err.println("Aspect2.before_" + thisJoinPoint.getSignature().getName());
}
diff --git a/tests/ltw/Aspect3.aj b/tests/ltw/Aspect3.aj
index 08dff8c45..21fd70702 100644
--- a/tests/ltw/Aspect3.aj
+++ b/tests/ltw/Aspect3.aj
@@ -1,18 +1,18 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
import org.aspectj.lang.JoinPoint;
public aspect Aspect3 {
-
+
before () : execution(void Main.test999()) {
System.err.println("Aspect1.before_" + thisJoinPoint.getSignature().getName());
}
diff --git a/tests/ltw/Main.java b/tests/ltw/Main.java
index 9e53bfb4d..454af1365 100644
--- a/tests/ltw/Main.java
+++ b/tests/ltw/Main.java
@@ -1,11 +1,11 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
@@ -32,7 +32,7 @@ public class Main {
}
}
}
-
+
public static void main (String[] args) throws Exception {
System.out.println("Main.main");
new Main().test1();
diff --git a/tests/ltw/TestITDMethod.java b/tests/ltw/TestITDMethod.java
index 8f8d62268..efd771628 100644
--- a/tests/ltw/TestITDMethod.java
+++ b/tests/ltw/TestITDMethod.java
@@ -1,11 +1,11 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
@@ -20,7 +20,7 @@ public class TestITDMethod {
method.invoke(this,new Object[] {});
}
}
-
+
public static void main (String[] args) throws Exception {
System.out.println("TestITDMethod.main");
new TestITDMethod().invokeDeclaredMethods(args);
diff --git a/tests/ltw/TestMain.java b/tests/ltw/TestMain.java
index b55e94332..548890340 100644
--- a/tests/ltw/TestMain.java
+++ b/tests/ltw/TestMain.java
@@ -1,11 +1,11 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
@@ -13,7 +13,7 @@ import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
public class TestMain {
-
+
public static void main (String[] args) throws Exception {
Main.main(args);
}
diff --git a/tests/ltw/folder.jar/Aspect1.aj b/tests/ltw/folder.jar/Aspect1.aj
index 173cb8603..0fa7a8877 100644
--- a/tests/ltw/folder.jar/Aspect1.aj
+++ b/tests/ltw/folder.jar/Aspect1.aj
@@ -1,18 +1,18 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
import org.aspectj.lang.JoinPoint;
public aspect Aspect1 {
-
+
before () : execution(void Main.test1()) {
System.err.println("Aspect1.before_" + thisJoinPoint.getSignature().getName());
}
diff --git a/tests/ltw/folder.jar/Aspect2.aj b/tests/ltw/folder.jar/Aspect2.aj
index 519a47eeb..9c7de2933 100644
--- a/tests/ltw/folder.jar/Aspect2.aj
+++ b/tests/ltw/folder.jar/Aspect2.aj
@@ -1,18 +1,18 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
import org.aspectj.lang.JoinPoint;
public aspect Aspect2 {
-
+
before () : execution(void Main.test2()){
System.err.println("Aspect2.before_" + thisJoinPoint.getSignature().getName());
}
diff --git a/tests/ltw/folder.jar/Main.java b/tests/ltw/folder.jar/Main.java
index 9e53bfb4d..454af1365 100644
--- a/tests/ltw/folder.jar/Main.java
+++ b/tests/ltw/folder.jar/Main.java
@@ -1,11 +1,11 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
@@ -32,7 +32,7 @@ public class Main {
}
}
}
-
+
public static void main (String[] args) throws Exception {
System.out.println("Main.main");
new Main().test1();
diff --git a/tests/ltw/hier/child/Advisor.aj b/tests/ltw/hier/child/Advisor.aj
index d7b6b33ac..76cffacee 100644
--- a/tests/ltw/hier/child/Advisor.aj
+++ b/tests/ltw/hier/child/Advisor.aj
@@ -2,9 +2,9 @@
* Copyright (c) 2006 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
+ * under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
- * http://eclipse.org/legal/epl-v10.html
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* Ron Bodkin
diff --git a/tests/ltw/hier/child/Executor.aj b/tests/ltw/hier/child/Executor.aj
index 74a90a07a..f2e28e6b6 100644
--- a/tests/ltw/hier/child/Executor.aj
+++ b/tests/ltw/hier/child/Executor.aj
@@ -2,9 +2,9 @@
* Copyright (c) 2006 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
+ * under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
- * http://eclipse.org/legal/epl-v10.html
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* Ron Bodkin
diff --git a/tests/ltw/hier/top/SimpleMain.aj b/tests/ltw/hier/top/SimpleMain.aj
index 1355fb401..affb72cca 100644
--- a/tests/ltw/hier/top/SimpleMain.aj
+++ b/tests/ltw/hier/top/SimpleMain.aj
@@ -2,9 +2,9 @@
* Copyright (c) 2006 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
+ * under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
- * http://eclipse.org/legal/epl-v10.html
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* Ron Bodkin
diff --git a/tests/ltw/hier/util/A.aj b/tests/ltw/hier/util/A.aj
index df695c09d..026ddde5e 100644
--- a/tests/ltw/hier/util/A.aj
+++ b/tests/ltw/hier/util/A.aj
@@ -2,9 +2,9 @@
* Copyright (c) 2006 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
+ * under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
- * http://eclipse.org/legal/epl-v10.html
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* Ron Bodkin
diff --git a/tests/ltw/hier/util/T.aj b/tests/ltw/hier/util/T.aj
index f87f92d4a..b57095066 100644
--- a/tests/ltw/hier/util/T.aj
+++ b/tests/ltw/hier/util/T.aj
@@ -2,9 +2,9 @@
* Copyright (c) 2006 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
+ * under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
- * http://eclipse.org/legal/epl-v10.html
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* Ron Bodkin
diff --git a/tests/ltw/pakkage/Aspect3.aj b/tests/ltw/pakkage/Aspect3.aj
index 08894259e..109523dca 100644
--- a/tests/ltw/pakkage/Aspect3.aj
+++ b/tests/ltw/pakkage/Aspect3.aj
@@ -1,11 +1,11 @@
/*******************************************************************************
* 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
- *
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v 2.0
+ * which accompanies this distribution and is available at
+ * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
+ *
* Contributors:
* Matthew Webster initial implementation
*******************************************************************************/
@@ -14,9 +14,9 @@ package pakkage;
import org.aspectj.lang.JoinPoint;
public aspect Aspect3 {
-
+
declare precedence : *, Aspect3;
-
+
before () : execution(void Main.test2()){
System.err.println("pakkage.Aspect3.before_" + thisJoinPoint.getSignature().getName());
}