spoon icon indicating copy to clipboard operation
spoon copied to clipboard

[Bug]: If there is no parent class source code, invocation.getExecutable() will incorrectly locate other method in this class

Open Scrates1 opened this issue 2 years ago • 0 comments

Describe the bug

When I use Spoon analysis, if there is no parent class source code, invocation.getExecutable() will incorrectly locate other method in this class. image

Source code you are trying to analyze/transform

public abstract class A extends Father {
    @Override
    public void add(double x) {
        add(x, 1);
    }

    abstract void add(double x, int w, int base);
}

Source code for your Spoon processing

No response

Actual output

No response

Expected output

No response

Spoon Version

10.3.0

JVM Version

15

What operating system are you using?

win11

Scrates1 avatar Jun 21 '23 09:06 Scrates1