Deal of the Day

Home » Main » Manning Forums » 2008 » AspectJ in Action, Second Edition

Thread: Exception handler join points

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Pages: 1 - Last Post: Oct 9, 2010 10:51 PM by: John Polo Threads: [ Previous | Next ]
ALima

Posts: 2
From: PT
Registered: 8/30/09
Exception handler join points
Posted: Aug 30, 2009 12:36 PM
  Click to reply to this thread Reply

Greetings.

Releases of AspectJ, previous to version 5, didn't support after and around advice for exception handler join points.

Do AspectJ 5 and 6 already support after and around advice for this type of join points?

Thanks.

ramnivas

Posts: 171
From: Princeton, NJ
Registered: 12/7/03
Re: Exception handler join points
Posted: Aug 30, 2009 12:38 PM   in response to: ALima in response to: ALima
  Click to reply to this thread Reply

They don't and unlikely to do so anytime soon. The issue there is how Java byte code makes it impossible to determine the end of a catch block.

-Ramnivas

ALima

Posts: 2
From: PT
Registered: 8/30/09
Re: Exception handler join points
Posted: Aug 30, 2009 12:42 PM   in response to: ramnivas in response to: ramnivas
  Click to reply to this thread Reply

Thanks for the quick reply.

Do you think that information is worth mentioning in your book? I've searched both editions and couldn't find info on that subject.

Regards.

ramnivas

Posts: 171
From: Princeton, NJ
Registered: 12/7/03
Re: Exception handler join points
Posted: Sep 9, 2009 2:47 PM   in response to: ALima in response to: ALima
  Click to reply to this thread Reply

I had this information in an earlier draft, but removed it (along with a lot of other material) to keep focus on practical issues.

-Ramnivas

John Polo

Posts: 1
From: China
Registered: 10/9/10
Re: Exception handler join points
Posted: Oct 9, 2010 10:51 PM   in response to: ramnivas in response to: ramnivas
  Click to reply to this thread Reply

speak honestly,I can not understand the "hangler()" clearly, and what its use in a project? I hope you may give me a small example to explain that!
thank you

Legend
Gold: 300 + pts
Silver: 100 - 299 pts
Bronze: 25 - 99 pts
Manning Author
Manning Staff
Manning Developmental Editor