aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/cflowAndJar
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-07-02 23:21:51 +0000
committerjhugunin <jhugunin>2003-07-02 23:21:51 +0000
commit0e3c87c56d6120afa0bb0db602a73b473d23b04a (patch)
tree36c5c0288e1da4e5a64ba559f0e47e4484015da8 /tests/bugs/cflowAndJar
parentba41fae6547688e8714d01be27bc81dbbe850f55 (diff)
downloadaspectj-0e3c87c56d6120afa0bb0db602a73b473d23b04a.tar.gz
aspectj-0e3c87c56d6120afa0bb0db602a73b473d23b04a.zip
added test for Bugzilla Bug 39462
Compiler crashes in jar and cflow
Diffstat (limited to 'tests/bugs/cflowAndJar')
-rw-r--r--tests/bugs/cflowAndJar/AbstractAspect.aj6
-rw-r--r--tests/bugs/cflowAndJar/Test.java15
-rw-r--r--tests/bugs/cflowAndJar/TestAspect.aj6
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs/cflowAndJar/AbstractAspect.aj b/tests/bugs/cflowAndJar/AbstractAspect.aj
new file mode 100644
index 000000000..529cc08b6
--- /dev/null
+++ b/tests/bugs/cflowAndJar/AbstractAspect.aj
@@ -0,0 +1,6 @@
+public abstract aspect AbstractAspect{
+ public abstract pointcut directCall();
+ before(): directCall(){
+ System.out.println("direct");
+ }
+}
diff --git a/tests/bugs/cflowAndJar/Test.java b/tests/bugs/cflowAndJar/Test.java
new file mode 100644
index 000000000..079ac6b22
--- /dev/null
+++ b/tests/bugs/cflowAndJar/Test.java
@@ -0,0 +1,15 @@
+public class Test{
+ public static void main(String[] arguments){
+ Test test = new Test();
+ test.sayHello();
+ test.doSayHello();
+ }
+
+ public void sayHello(){
+ doSayHello();
+ }
+
+ public void doSayHello(){
+ System.out.println("hello.");
+ }
+}
diff --git a/tests/bugs/cflowAndJar/TestAspect.aj b/tests/bugs/cflowAndJar/TestAspect.aj
new file mode 100644
index 000000000..a6ed50ae6
--- /dev/null
+++ b/tests/bugs/cflowAndJar/TestAspect.aj
@@ -0,0 +1,6 @@
+public aspect TestAspect extends AbstractAspect{
+ public pointcut directCall():
+ execution(void Test.doSayHello(..))
+ && cflow(execution(void Test.direct(..)))
+ ;
+}