[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] How to trace a static method with varargs ?
|
it looks like your pointcut is when calling the method named getSQLResultSetBound but your example code has method named getResultSetBound.
Mike
On Tue, May 18, 2010 at 5:09 AM, Roger Gilliar
<roger@xxxxxxxxxx> wrote:
I would like to trace the following method. But I can't figure out how to handle the varargs:
public Object[][] getResultSetBound(final Connection dbConn, final String sql, final JdbcParm... values) {
return getResultSetBound(dbConn, sql, null, values);
}
My aspect is:
pointcut traceGetSQLResultset(Connection dbConn, String sql, JdbcParm[] values) :
call(Object[][] LibUtil.getSQLResultSetBound(Connection, String, JdbcParm [])) &&
args(dbConn, sql, values);
Object[][] around(Connection dbConn, String sql, JdbcParm[] values) :
traceGetSQLResultset(dbConn, sql, values) {
System.out.println(sql);
return proceed(dbConn, sql, values);
}
But the advice is not applied.
What I'm doing wrong ?
Regards
Roger
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users