Working Java8 build!
- Split the AspectJ testcode out of the general testdata project. - Adjusted tests to handle that JDT produces different code to AspectJ. - Modified some tests to work better with javac compiled testdata (which is what happens when building on the command line or build machine)
This commit is contained in:
13
testdata/src/main/java/data/AnAspect.java
vendored
13
testdata/src/main/java/data/AnAspect.java
vendored
@@ -1,13 +0,0 @@
|
||||
package data;
|
||||
|
||||
public aspect AnAspect {
|
||||
|
||||
before(): execution(!static * AspectReceiver.*(..)) {
|
||||
System.out.println("Foo");
|
||||
}
|
||||
|
||||
pointcut boo(String foo,String bar): execution(* *(..)) && args(foo,bar);
|
||||
before(String foo): boo(foo,*) {
|
||||
|
||||
}
|
||||
}
|
||||
15
testdata/src/main/java/data/AspectReceiver.java
vendored
15
testdata/src/main/java/data/AspectReceiver.java
vendored
@@ -1,15 +0,0 @@
|
||||
package data;
|
||||
|
||||
public class AspectReceiver {
|
||||
|
||||
public static void main2() {
|
||||
main(null);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new AspectReceiver().foo();
|
||||
}
|
||||
|
||||
public void foo() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user