mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] throw NoSuchMethodException if method not found in helper
GitOrigin-RevId: 5c2f800f6a51b5e53bb35412d2439969029583e3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fbb8c1be9b
commit
1cabca9ffe
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.rt.debugger;
|
||||
|
||||
import java.lang.invoke.MethodHandle;
|
||||
@@ -188,6 +188,10 @@ public final class MethodInvoker {
|
||||
method = lookup.findStatic(cls, name, mt);
|
||||
}
|
||||
|
||||
if (method == null) {
|
||||
throw new NoSuchMethodException(nameAndDescriptor + " not found in " + cls);
|
||||
}
|
||||
|
||||
int parameterCount = mt.parameterCount();
|
||||
Class<?> lastParameterType = parameterCount > 0 ? mt.parameterType(parameterCount - 1) : null;
|
||||
boolean vararg = method.isVarargsCollector();
|
||||
|
||||
Reference in New Issue
Block a user