diff options
author | jhugunin <jhugunin> | 2003-07-02 23:21:51 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-07-02 23:21:51 +0000 |
commit | 0e3c87c56d6120afa0bb0db602a73b473d23b04a (patch) | |
tree | 36c5c0288e1da4e5a64ba559f0e47e4484015da8 /tests | |
parent | ba41fae6547688e8714d01be27bc81dbbe850f55 (diff) | |
download | aspectj-0e3c87c56d6120afa0bb0db602a73b473d23b04a.tar.gz aspectj-0e3c87c56d6120afa0bb0db602a73b473d23b04a.zip |
added test for Bugzilla Bug 39462
Compiler crashes in jar and cflow
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ajcTestsFailing.xml | 7 | ||||
-rw-r--r-- | tests/bugs/cflowAndJar/AbstractAspect.aj | 6 | ||||
-rw-r--r-- | tests/bugs/cflowAndJar/Test.java | 15 | ||||
-rw-r--r-- | tests/bugs/cflowAndJar/TestAspect.aj | 6 |
4 files changed, 33 insertions, 1 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index cb741c1e0..4292bacbd 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -3,6 +3,11 @@ <!-- contains valid tests that the compiler has never passed --> <suite> - + <ajc-test dir="bugs/cflowAndJar" pr="39462" + title="Compiler crashes in jar and cflow" + comment="make lib.jar with ajc -outjar lib.jar AbstractAspect.aj"> + <compile files="lib.jar,TestAspect.aj,Test.java"/> + <run class="Test"/> + </ajc-test> </suite> 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(..)))
+ ;
+}
|