Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: Per-control-flow II.



Pavel,

Your aspect will certainly enable the logging of exceptions. However the
use of "around()" advice will have the side effect of swallowing the
exception which you may not want to do in all cases e.g.
NullPointerException. I suggest using either "after() throwing(..)" advice
or be more selective in the exceptions you swallow.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/



Back to the top