wcandillon / apdt

Automatically exported from code.google.com/p/apdt
0 stars 0 forks source link

Unable to weave around functions that are outside classes #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a PHP file that contains a function outside a class (for example,
"function myFunction()").
2. Attempt to define "before" advice with a pointcut definition of
"@Before(exec(myFunction))".
3. Weave the project.
4. Examine the resulting code.

What is the expected output?
The "before" advice should be applied before the rest of the original code
of myFunction().

What do you see instead?
An error message appears before weaving that indicates that the pointcut
definition is incorrect.

The weaved source code for the "myFunction" function is the same as the
original code before weaving.

What version of the product are you using? On what operating system?
Aspect PHP Development Tools (APDT) Runtime Feature 1.0.0.200905250041,
running on Eclipse 3.5.2 on Windows 7 Professional 32-bit.

Original issue reported on code.google.com by Guy.Padd...@gmail.com on 5 Apr 2010 at 3:04

GoogleCodeExporter commented 9 years ago
The function joinpoint is not supported by this version.
Are you using apdt with success? I'd love to hear from you: 
wcandillon@gmail.com 

Original comment by wcandil...@gmail.com on 6 Apr 2010 at 6:53