Describe the bug
AnnotationScannerUtil filters methods by “typical” Java names (notify, wait, etc.) without checking signatures. Annotated overloads like notify(String) or
wait(String) are skipped, so annotated listeners/publishers with these names are not discovered and won’t appear in AsyncAPI generation.
Dependencies and versions used
Code example
@Component
class NotificationPublisher {
@AsyncPublisher(channelName = "notifications")
public void notify(String message) {
// publish a notification
}
}
// Invoking:
var methods = AnnotationScannerUtil.findAnnotatedMethods(
NotificationPublisher.class, AsyncPublisher.class
).toList();
// Actual: notify(String) is skipped because of name-based filtering.
// Expected: notify(String) is returned.
Stack trace and error logs
No exception, the annotated overloads are silently filtered out