Skip to main content

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

Bruno,

 

Thanks for the response.  I had originally planned to do what you were saying, that is convert x*y -> BigDecimal.multiply(x,y) but my boss thought it would be better to just round it out to 8 decimal places or so to get the necessary precision.  We’re talking about numbers which are used in financial calculations so it’s very important that they be precise.  It doesn’t really matter to me which way we do it but I’d like to be able to avoid having every programmer be responsible for determining whether the calculation is financial or not and doing the appropriate rounding or BigDecimal operations ergo my wish to use Aspects to make it always happen that way.

 

I’ll look into extending AspectJ that way (Eric pointed me to a compiler I can extend).

 

Thanks,

 

Drew


Back to the top