And you have to add the option -Xset:weaveJavaPackages=true in the options
of element weaver
Cordialement / Best regards
Jean-Louis Pasturel
_
De : aspectj-users-boun...@eclipse.org
[mailto:aspectj-users-boun...@eclipse.org] De la part de Simone Gianni
Envoyé : mardi 18 mai 2010
Hi Benyi,
you are trying to weave the JRE classes, which is quite tricky cause you
have to weave the rt.jar at compie time and then run using the java
bootclasspath option to use the weaved rt.jar. If you want to trace calls to
lists only from inside your code, then try @Before("call(*
java.util.Li
How can add an advice to the methods of java.util.List?
I include the following into weaver options in aop.xml
And
@Aspect
public class TestInterfaceAspect {
@Before("execution(* java.util.List.*(..))")
public void beforeListOperations(JoinPoint jp) {
System.out.println("Call " + jp.g
Andy,
When put more declararion into second aspect file I was able to see those
decorated. Then I removed the first aspect file altogether, and the second
started to show all decorations. Sounds like the expected behavior.
Thanks!
Simeon
-Original Message-
From: aspectj-users-boun...
the pointcuts execution/call/etc take a method declaration signature -
so you need to specify the signature as it is declared. This means
not:
call(Object[][] LibUtil,getResultSetBound(Connection, String, JdbcParm []))
but
call(Object[][] LibUtil,getResultSetBound(Connection, String, JdbcParm..
Hi,
I am using 'execution' here but this format shows the markers properly.
pointcut traceGetSQLResultset( Connection dbConn, String sql,
JdbcParm... values) :
Object[][] around(Connection dbConn, String sql, JdbcParm[] values) :
execution( Object[][] *.getResult
Ok,
after correcting my typo I'm now sure that JdbcParm [] doesn't match
JdbcParm... values since I get a match if I change the signature of my
method to getResultSetBound(final Connection dbConn, final String sql,
JdbcParm[] values).
The question remains: How do I write a pointcut for a met
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 wrote:
> I would like to trace the following method. But I can't figure out how to
> handle the varargs
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