Bug 298829 - Under percflow/percflowbelow instant. mode aspect applies only to thread of execution
Summary: Under percflow/percflowbelow instant. mode aspect applies only to thread of e...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Runtime (show other bugs)
Version: 1.6.7   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 05:15 EST by artemv CLA
Modified: 2010-01-07 12:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description artemv CLA 2010-01-05 05:15:01 EST
Build Identifier: 20090920-1017

Consider code:

public void testConcurrentLogic() {
 ExecutorService exec = ...
 Future f = exec.submit(runnable);
 assert...(f.get());
}

The issue is - need an aspect with lifecycle bound to testConcurrentLogic() and with ability to match joint points in runnable.run(). At current, first part is doable with percflow instantiation mode, second one - isn't.

Reproducible: Always

Steps to Reproduce:
Create an aspect like next one:

aspect A percflow(execution(@Test *.*(..))) {
   before() : execution(Runnable.run()) {
      // would be cool, if this could be matched! 
   }
}

The code that this aspect is supposed to match is under "Details".