Documentation enhancement for Custom Pointcuts #14036
Labels
in: docs
An issue in Documentation or samples
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Milestone
In current the documentation for Matching Methods with Custom Pointcuts there are examples of custom pointcut in Java/Kotlin and XML which should be equivalent.
While the XML variant works and is currently used by us, the Java example doesn't work.
As far as I understand, the pointcut pattern in the example is an AspectJ pointcut but the class used is
JdkRegexpMethodPointcut
. Trying to run the example as is results inSwapping the
JdkRegexpMethodPointcut
forAspectJExpressionPointcut
(and replacingpattern.setPattern()
withpattern.setExpression()
) results in a working app with expected behaviour.The example should therefore probably either use
AspectJExpressionPointcut
(withpattern.setExpression()
) or a different pattern (which would make the XML example not equivalent anymore).The text was updated successfully, but these errors were encountered: