Fix broken logic that uses null owner class
Fixes https://github.com/spring-projects/spring-loaded/issues/173 Fixes https://github.com/spring-projects/spring-loaded/issues/187 Fixes https://github.com/spring-projects/spring-loaded/issues/175§
This commit is contained in:
@@ -150,8 +150,8 @@ public class Java8 {
|
||||
if (null == ownerRType || !ownerRType.hasBeenReloaded()) {
|
||||
// target containing the reference/lambdaMethod has not been reloaded, no need to get over
|
||||
// complicated.
|
||||
Class<?> ownerClazz = ownerRType.getClazz();
|
||||
implMethod = caller.findVirtual(ownerClazz, name, implMethodType);
|
||||
Class<?> clazz = callerLoader.loadClass(owner.replace("/", "."));
|
||||
implMethod = caller.findVirtual(clazz, name, implMethodType);
|
||||
}
|
||||
else {
|
||||
MethodMember targetReferenceMethodMember = ownerRType.getCurrentMethod(name, descriptor);
|
||||
|
||||
Reference in New Issue
Block a user