Don't rewrite non-reloading types.
Fixes https://github.com/spring-projects/spring-loaded/issues/165
This commit is contained in:
@@ -1045,6 +1045,11 @@ public class MethodInvokerRewriter {
|
||||
throw new IllegalStateException("Unable to find classId for " + slashedclassname
|
||||
+ " referenced from invokedynamic in " + this.methodname + "()");
|
||||
}
|
||||
if(typeRegistry.getReloadableType(classId) == null) {
|
||||
// can't rewrite non-reloading type
|
||||
super.visitInvokeDynamicInsn(name, desc, bsm, bsmArgs);
|
||||
return;
|
||||
}
|
||||
|
||||
// Initially only rewriting use of INVOKEDYNAMIC to support Lambda execution
|
||||
// TODO support the more general invokedynamic usage
|
||||
|
||||
Reference in New Issue
Block a user