[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Detect exception handling in loops
|
Hello,
Yesterday, I was reading some things about good practices for exception
handling and optimization, and I got with the following:
In http://www.precisejava.com/javaperf/j2se/Exceptions.htm:
Key Points
1. Be specific while handling the exception in your catch block.
2. Be specific while throwing exception in your throws clause.
3. Do not use Exception Handling to control programming flow.
4. Very little overhead is imposed by using exception handling mechanism
unless an exception occurs or thrown a new exception object explicitly.
5. Always use the finally block to release the resources to prevent
resource leaks.
6. Handle exceptions locally wherever possible.
7. Do not use Exception handling in loops.
With that key points, I was wondering if it's possible to prevent the seventh
key point with AspectJ, this is, I was wondering if it's possible to capture
the execution of loops.
Thanks in advance. Best regards,
Paulo Zenida