Bug: ClassNotFoundException when calling getActualMethod() on an invocation of a method of an inner class
- Dominant language
- Java
- Stars
- 2k
- Forks
- 392
- Avg merge
- 11h 24m
- Merged PRs (30d)
- 36
Description
When executing the following processor
```
public class InvocationProcessor extends AbstractProcessor> {
@Override
public void process(CtInvocation element) {
CtExecutableReference executable = element.getExecutable();
Method method = executable.getActualMethod();
}
```
on the class
```
public final class Outer {
public final class Inner {
public Inner foo() {
return new Inner();
}
public Inner bar() {
return foo();
}
}
}
```
a SpoonClassNotFoundException("cannot load class Outer$Inner") with "ClassNotFoundException: Outer$Inner" as its cause is thrown when calling `executable.getActualMethod()`.
~~Actually foo() returns an object of type Inner, so the processor shouldn't trigger.~~
Contributor guide
Assessment
This issue has not been assessed yet.