diff --git a/src/net/JNetReflector/InternalExtensions.cs b/src/net/JNetReflector/InternalExtensions.cs index f4c7808b2f..058959606b 100644 --- a/src/net/JNetReflector/InternalExtensions.cs +++ b/src/net/JNetReflector/InternalExtensions.cs @@ -1102,7 +1102,7 @@ public static bool IsJVMListenerClass(this Class entry) { if (entry.TypeName.IsJVMListenerClass()) { - if (!entry.IsInterface && entry.Interfaces.Length == 0) // if a class and there aren't interfaces it is not a listener + if (!entry.IsJVMClassWithCallbacks() && !entry.IsInterface && entry.Interfaces.Length == 0) // if a class and there aren't interfaces it is not a listener { return false; }