Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Re: [Bug 30439] spurious "circular dependency " error

Jim.Hugunin@xxxxxxxx writes:
 > before() throws IOException: fileOp() {
 >     logStream = new FileOutputStream("log");
 >     ...
 > }
 > 
 > after() throwing (IOException ioe): fileOp() {
 >     handleException(ioe);
 > } 
 > 
 > If the after is more precedent, then it will act as if it is
 > "outside" of the before and any exceptions thrown by the "new
 > FileOutputStream" call will be seen by the after throwing advice.

This seems wrong to me-- the join point that is throwing the exception 
is not in fileOp(), it's an advice execution join point.  (If it is in 
fileOp(), then why doesn't the before advice cause an infinite loop?)

--dougo@xxxxxxxxxxx


Back to the top