[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] aspects and threads
|
Hi Rachel,
If you send a bigger code snippet from the aspect that might help a
little.
Seems you are also using a declare soft declaration too and basically
because declare soft wraps the original exception in a runtime
SoftException it is this that's making it's way up to the surface. If
you send through some more of the code then it should be fairly simple
to code you up something that handles the soft exception being raised,
if that's right for your app?
Cheers,
Russ
On 25 Feb 2005, at 17:38, Rachel wrote:
Hi all
I'm working with aspects which deal with the exceptions that
are thrown at the program. I have a pointcut such as:
pointcut PntSQLException() : execution(* Members.connection(..));
The problem is that when an exception occur, the aspect crosscutts this
exception, but it doesn't come from the aspect again. The console show
this message:
org.aspectj.lang.SoftException
at jlibrary.Members.connection(Members.java:124)
at jlibrary.EditMembers$2.run(EditMembers.java:271)
When I change the pointcut to:
pointcut PntSQLException() : call(* Members.connection(..));
the compiler doesn't find the method connection() that is in a thread,
and find others connection() methods, which aren't in threads.
But I need the connection() method that is in a thread.
Has someone any idea??
thanks a lot!!
Rachel
---------------------------------------------
MSc Candidate in Computer Science
UFSCar - Federal University of São Carlos
Brazil
---------------------------------------------
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users