fixes for IJ-CR-147189

(cherry picked from commit bf02e3a97601b4252d80157b132a5960069bba9f)

IJ-CR-147195

GitOrigin-RevId: 7d789a44df27bf81f3d8dfaa0091af4074688049
This commit is contained in:
Egor Ushakov
2024-11-19 13:50:21 +00:00
committed by intellij-monorepo-bot
parent 478ed5f349
commit 1097e6a771
2 changed files with 5 additions and 1 deletions
@@ -110,7 +110,7 @@ public class BasicStepMethodFilter implements NamedMethodFilter {
if (!res && !method.isStatic() && stackFrame != null) {
ObjectReference thisObject = stackFrame.thisObject();
if (thisObject != null) {
res = DebuggerUtils.instanceOf(thisObject.referenceType(), (declaringClassNameName));
res = DebuggerUtils.instanceOf(thisObject.referenceType(), declaringClassNameName);
}
}
return res;
@@ -123,6 +123,10 @@ public abstract class DebuggerUtilsEx extends DebuggerUtils {
return null;
}
/**
* Does not handle array types correctly
* @deprecated use {@link DebuggerUtils#instanceOf(Type, String)}
*/
@Deprecated
public static boolean isAssignableFrom(@NotNull String baseQualifiedName, @NotNull Type checkedType) {
if (checkedType instanceof ReferenceType) {