diff --git a/jnius/reflect.py b/jnius/reflect.py index 0c16f34..e872907 100644 --- a/jnius/reflect.py +++ b/jnius/reflect.py @@ -219,7 +219,10 @@ def autoclass(clsname): cls = c while cls is not None: - methods = cls.getMethods() + if cls is c: + methods = cls.getDeclaredMethods() + else: + methods = cls.getMethods() methods_name = [x.getName() for x in methods] for index, method in enumerate(methods):