Bug 437531 - execution pointcut not working in Eclipse 4.3 to intercept us of SWT native dialogs
Summary: execution pointcut not working in Eclipse 4.3 to intercept us of SWT native d...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: 1.7.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-16 09:43 EDT by Alan Staves CLA
Modified: 2014-06-16 09:43 EDT (History)
0 users

See Also:


Attachments
Example plugin and aspect projects (14.64 KB, application/x-zip-compressed)
2014-06-16 09:43 EDT, Alan Staves CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Staves CLA 2014-06-16 09:43:49 EDT
Created attachment 244283 [details]
Example plugin and aspect projects

I will attach a zip containing an example command which invokes the SWT DirectoryDialog along with an aspect project which should intercept this and return a fixed value (we use an aspect like this in some automated testing).

Import the projects into a workspace and run Eclipse with JDT Weaving enabled, invoke the SampleMenu->Sample Command menu item - it should simply display a message box saying the call was intercepted but it will instead display the native directory browse dialog.

The same aspect works fine with Eclipse 3.8 but not with 4.x - changing the "execution" to "call" and adding the relevant bundle to the Eclipse-SupplementBundle header is a workaround as that works with both 3.8 and 4.x.