Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overridingMethods on Java class methods does not work properly #724

Closed
LABSARI opened this issue Feb 20, 2024 · 0 comments
Closed

overridingMethods on Java class methods does not work properly #724

LABSARI opened this issue Feb 20, 2024 · 0 comments
Assignees

Comments

@LABSARI
Copy link
Collaborator

LABSARI commented Feb 20, 2024

class A {
    void foo() {
        System.out.println("A.foo");
    }
}

class B extends A {
    @Override
    void foo() {
        System.out.println("B.foo");
    }
}

// Class C, subclass of B, also overrides foo
class C extends B {
    @Override
    void foo() {
        System.out.println("C.foo");
    }
}

In this example, A.foo is overriden by B.foo and C.foo.
overridingMethods on A.foo returns only B.foo.
It should return both B.foo and C.foo. It should not stop to look down when it finds an overriding method.

@LABSARI LABSARI self-assigned this Feb 20, 2024
LABSARI added a commit that referenced this issue Feb 23, 2024
…-Java-class-methods-does-not-work-properly

Fix #724
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant