[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Detect exception handling in loops
|
> I was wondering if it's possible to
> capture
> the execution of loops.
Not in AspectJ.
But see http://www.cs.manchester.ac.uk/cnc/projects/loopsaj/
Wes
> ------------Original Message------------
> From: Paulo Alexandre Corigo Zenida <paulo.zenida@xxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Date: Wed, Jan-18-2006 1:45 AM
> Subject: [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
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>