[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-dev] aspectj newbie question-compile time error
|
Platform of reference:
ajc -version:
AspectJ Compiler 1.2 built on Friday May 21, 2004 at 15:06:22 GMT
AspectJ ajc compile-error:
compile:
[ajc] PersistenceManager.java:189 errorSoftException cannot be resolved
(or is not a valid type) for the argument sx of the method
ajc$afterThrowing$jharon_persistence_PersistenceManager$PersistenceExceptionHand
lingAspect$1$0
[ajc] after() throwing (SoftException sx) throws SQLException
[ajc] ^^^^
[ajc] PersistenceManager.java:191 errorSyntax error on token "(", ")"
expected
[ajc] within(PersistenceManager)){
[ajc]
[ajc] 2 errors
the code is:
static aspect PersistenceExceptionHandlingAspect{
declare soft: SQLException
: call(* *.*(..) throws SQLException) &&
within(PersistenceManager);
after() throwing (SoftException sx) throws SQLException
:execution (* PersistenceManager.*(..) throws SQLException &&
within(PersistenceManager)){
sx.getWrappedThrowable().printStackTrace();
}
}
any idea?...
thanks in advance
Valerio - Italy