Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Parameter construction pointcut?

Well, maybe not a parameter construction pointcut but something else.

Looking at the source code like this:
logger.debug("Entry number: " + i + " is " + String.valueOf(entry[i]));

a human being can formulate: "I do not want any operations on parameters
for the method logger.debug()".

Since a human being can formulate this, why a program can't?


> P.S. I understand that AspectJ operates on the bytecode but not on the
> source code. But is it theoretically possible to augment the AspectJ
> with a parameter construction pointcut? Just curious.

That is impossible because it is undecidable in general. Where does
parameter construction start in general? Not even a human being could
answer that question.

Eric


Back to the top