AspectJ - pointcut to match a method that has generic parameters
问题 I have a generic method that accepts any type as its parameter. For example, I would like a pointcut that matches the calls made to the method only with 'String' type as its parameter. Ultimately the requirement is to limit the scope which the advices get executed for to 'String' parameters. Here is my generic class and method: public class Param<T> { public T execute(T s){ return s; } } Main class: My app makes calls to the method with both Boolean and String as parameters. public static