INRIA / INRIA/spoon

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

Open
#5,301 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

### 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](https://github.com/INRIA/spoon/assets/49557842/db2b13de-cbc4-4e99-bee5-fb787bed7892)

### Source code you are trying to analyze/transform

```Java
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.