Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] pointcut problem

I defined a pointcut like this:
pointcut create(Stack s):call(Stack.new())&&target(s);

The code means I want to handle the Stack instantiation event and get this object. But I found this pointcut never arrived in the run process of program.

On the contrary, I define a pointcut like this:
pointcut create():call(Stack.new());
At this time, this pointcut is valid.

What's wrong with the first pointcut? How to handle the instantiation event and get the correlative object?






==========================
263电子邮件-信赖邮自专业

Back to the top