Minor: Remove a deprecated method usage

This commit is contained in:
Yan Zhulanow
2018-11-12 15:14:17 +09:00
parent 4cfd028768
commit 1d1f3c3fd6
@@ -20,7 +20,6 @@ import com.intellij.debugger.engine.DebugProcessImpl
import com.intellij.debugger.engine.evaluation.EvaluateException
import com.intellij.debugger.engine.evaluation.EvaluationContextImpl
import com.intellij.debugger.impl.ClassLoadingUtils
import com.intellij.debugger.impl.DebuggerUtilsEx
import com.intellij.openapi.projectRoots.JavaSdkVersion
import com.intellij.openapi.util.SystemInfo
import com.sun.jdi.ClassLoaderReference
@@ -111,7 +110,7 @@ class OrdinaryClassLoadingAdapter : ClassLoadingAdapter {
val defineMethod = classLoaderType.concreteMethodByName("defineClass", "(Ljava/lang/String;[BII)Ljava/lang/Class;")
val nameObj = vm.mirrorOf(name)
DebuggerUtilsEx.keep(nameObj, context)
context.keep(nameObj)
process.invokeMethod(
context, classLoader, defineMethod,