You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CflowBindingOrig.java 815B

123456789101112131415161718192021222324252627282930313233343536
  1. // for Bugzilla Bug 34858
  2. // Weaver crash
  3. import org.aspectj.testing.Tester;
  4. /**
  5. * Almost an exact duplicate of the reported issue
  6. */
  7. public class CflowBindingOrig {
  8. public static void main(String[] args) {
  9. new Bar().foo();
  10. }
  11. static aspect MockProcessing {
  12. pointcut testFlow(final Thread thread) :
  13. cflow(execution(void run()) && this(thread) && within(Thread)); // the within is an optimization
  14. Object around() :
  15. call(* DummyConfiguration.createRootApplicationModule(..)) && testFlow(Thread)
  16. {
  17. return null;
  18. }
  19. }
  20. }
  21. class Bar {
  22. void foo() {
  23. DummyConfiguration.createRootApplicationModule();
  24. }
  25. }
  26. class DummyConfiguration {
  27. static Object createRootApplicationModule() {
  28. return null;
  29. }
  30. }