diff options
author | jhugunin <jhugunin> | 2003-03-12 23:07:08 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-03-12 23:07:08 +0000 |
commit | 7746fcb7e977c7a91bd70081a2197a999ec18ad3 (patch) | |
tree | 4e4e458141708cb69d58b31043883be4f6c2871b /tests/bugs/CflowBindingOrig.java | |
parent | 519aa42cff336a34041df665c4c7e8f738274973 (diff) | |
download | aspectj-7746fcb7e977c7a91bd70081a2197a999ec18ad3.tar.gz aspectj-7746fcb7e977c7a91bd70081a2197a999ec18ad3.zip |
fix and test for Bugzilla Bug 34858
Weaver crash
Diffstat (limited to 'tests/bugs/CflowBindingOrig.java')
-rw-r--r-- | tests/bugs/CflowBindingOrig.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/bugs/CflowBindingOrig.java b/tests/bugs/CflowBindingOrig.java new file mode 100644 index 000000000..cd0f00b9d --- /dev/null +++ b/tests/bugs/CflowBindingOrig.java @@ -0,0 +1,36 @@ +// for Bugzilla Bug 34858 +// Weaver crash + +import org.aspectj.testing.Tester; + +/** + * Almost an exact duplicate of the reported issue + */ +public class CflowBindingOrig { + public static void main(String[] args) { + new Bar().foo(); + } + + static aspect MockProcessing { + pointcut testFlow(final Thread thread) : + cflow(execution(void run()) && this(thread) && within(Thread)); // the within is an optimization + + Object around() : + call(* DummyConfiguration.createRootApplicationModule(..)) && testFlow(Thread) + { + return null; + } + } +} + +class Bar { + void foo() { + DummyConfiguration.createRootApplicationModule(); + } +} + +class DummyConfiguration { + static Object createRootApplicationModule() { + return null; + } +} |