Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] creating a pointcut for primitive operations

Hi,

 

I’m sort of an AOP newbie but I had a question related to creating pointcuts which are not specifically for methods.  The issue here is that java decimal arithmetic is NOT entirely accurate due to rounding so when you do something like 33 * 100 you get 329.999999945.  What I’d like to be able to do is look for a pattern of x * y  and replace it with roundIt(x*y).  Does this sort of functionality exist or does anyone have a better idea?

 

Drew


Back to the top