Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Exceptions

Hello,
  thanks for the reply, but 'm too new to AspectJ to figure out how to do it...
Do you have an example?

Best regards,
  Silviu ANDRICA
Ramnivas Laddad wrote:
See another email thread for a solution.

In future, AspectJ may offer a better solution. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=240608

-Ramnivas

On Thu, Mar 5, 2009 at 5:01 PM, Andrica Silviu <silviu.andrica@xxxxxxx> wrote:
  
Hello,
 I was hoping you could help me with a problem I have:
I want to instrument calls to InputStream.read(). This method migtht throw an exception. The problem is that in the application I want to instrument contains a class that
implements InputStream but its read() method signature does not contain a throw declaration. Thus, the compilation fails.
I use an around advice which throws an IOException. If I declare the around advice without the throws clause, then the application does not work correctly.

Thanks in advance,
 Silviu
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

    
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
  


Back to the top