[aspectc-user] Bugreport: Poincut-Designator not working

Dominik Sacher sacher at dvoid.org
Wed Oct 23 22:01:23 CEST 2002


Dear all!

[BUGREPORT]
Poincuts do not "find" the correct joinpoints, if the specified
Return-Type is a pointer.


[EXAMPLE]
Having this class:
class ClassX{

private:
int a;
char* b;
int* c;

public:
  int   getA() { return a; }
  char* getB() { return b; }
  int*  getC() { return c; }

//...
};


does this Pointcut change all methods: (OK!)
pointcut pc_ClassX_GETTER() =  execution("% ClassX::get%()");
advice pc_ClassX_GETTER() : after() {
    cout << "AFTER" << endl;
}


but neither this Pointcut changes any method: (BUG!)
pointcut pc_ClassX_GETTER() =  execution("char* ClassX::get%()");
...

nor this one:
pointcut pc_ClassX_GETTER() =  execution("int* ClassX::get%()");
...


I haven't done any more tests on which return-types were "found" by the Poincut 
and which were not.

Regards,
Dominik






More information about the aspectc-user mailing list