Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Exceptions at set and get

The reason is simple: advice cannot throw any checked exceptions that the affected join point could not throw if the advice were not present. Since Java does not expect field sets and gets  to result in checked exceptions, advice cannot introduce them.

Cheers,
Nick


 Aug 11, 2005, at 3:44 AM, <mohan.radhakrishnan@xxxxxxxxxxxxx> wrote:

Hi,
      I am trying to understand what the reason is for disallowing exceptions at field get and set joinpoints. How do I use the throws
clause to declare a unhandled checked exception thrown by another method called from within such an advice ? Should it be only unchecked ?
 
Thanks,
Mohan

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

_______________________________________________
aspectj-users mailing list



Back to the top