Community
Participate
Working Groups
The method tryToDiscoverParameterNames() called from Java15ReflectionBasedReferenceTypeDelegate.getDeclaredPointcuts() fails to identify the correct pointcut method when multiple pointcut methods with same name/overloaded methods are declared. Analysis pnames = tryToDiscoverParameterNames(pcs[i]); The method tryToDiscoverParameterNames() only compares the method names to get the parameter names through Java15AnnotationFinder.getParameterNames(). This results in incorrect identification of the pointcut method and the downstream logic fails to identify the parameters associated with the pointcut. Usecase and analysis here : https://stackoverflow.com/questions/77205182/why-a-pointcut-name-method-cant-be-overloaded
This is not a bug but a feature request. See discussion [1] and existing issue [2]. Please also do not create bugs here anymore. The Bugzilla instance is to be retired, and current AspectJ issues should go to [3]. [1] https://www.eclipse.org/lists/aspectj-dev/msg01383.html [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=88620 [3] https://github.com/eclipse-aspectj/aspectj/issues *** This bug has been marked as a duplicate of bug 88620 ***