diff options
Diffstat (limited to 'tests/bugs154/pr162539')
-rw-r--r-- | tests/bugs154/pr162539/lib.jar | bin | 0 -> 901 bytes | |||
-rw-r--r-- | tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/AtAspect.java | 19 | ||||
-rw-r--r-- | tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/HelloWorld.java | 9 | ||||
-rw-r--r-- | tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/PointcutLibrary.java | 11 |
4 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs154/pr162539/lib.jar b/tests/bugs154/pr162539/lib.jar Binary files differnew file mode 100644 index 000000000..ae0983d9b --- /dev/null +++ b/tests/bugs154/pr162539/lib.jar diff --git a/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/AtAspect.java b/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/AtAspect.java new file mode 100644 index 000000000..0c988c8d2 --- /dev/null +++ b/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/AtAspect.java @@ -0,0 +1,19 @@ +package test.ataspectj.pointcutlibrary; + +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.aspectj.lang.annotation.Pointcut; + +@Aspect +public class AtAspect { +// @Pointcut("execution(public void main(String[]))") +// public void mainMethod () { +// } + + @Before("(PointcutLibrary.mainMethod())") + public void beforeMainMethod (JoinPoint.StaticPart thisJoinPointStaticPart, JoinPoint thisJoinPoint) { + System.out.println("AtAspect.beforeMainMethod() " + thisJoinPoint); + } + +} diff --git a/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/HelloWorld.java b/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/HelloWorld.java new file mode 100644 index 000000000..6515d48f9 --- /dev/null +++ b/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/HelloWorld.java @@ -0,0 +1,9 @@ +package test.ataspectj.pointcutlibrary; + +public class HelloWorld { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } + +} diff --git a/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/PointcutLibrary.java b/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/PointcutLibrary.java new file mode 100644 index 000000000..54b0a4aff --- /dev/null +++ b/tests/bugs154/pr162539/test/ataspectj/pointcutlibrary/PointcutLibrary.java @@ -0,0 +1,11 @@ +package test.ataspectj.pointcutlibrary; + +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; + +//@Aspect +public class PointcutLibrary { +//pointcut mainMethod(): execution(public void main(String[])); +@Pointcut("execution(public void main(String[]))") public void mainMethod () { } + +} |