Evaluate Expression: fix ClassNotFoundException for primitives and arrays
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour
|
||||
.zip(argumentTypes)
|
||||
.map { (value, type) ->
|
||||
// Make argument type classes prepared for sure
|
||||
eval.loadClass(type, classLoader)
|
||||
eval.loadClassByName(type.className, classLoader)
|
||||
boxOrUnboxArgumentIfNeeded(eval, value, type).asJdiValue(vm, type)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+3
@@ -14,3 +14,6 @@ fun foo(p: () -> Int) = p()
|
||||
// EXPRESSION: foo { a }
|
||||
// RESULT: 1: I
|
||||
|
||||
// EXPRESSION: foo { args.size }
|
||||
// RESULT: 0: I
|
||||
|
||||
|
||||
Vendored
+1
@@ -4,6 +4,7 @@ Connected to the target VM
|
||||
ceLambda.kt:6
|
||||
Compile bytecode for foo { 1 }
|
||||
Compile bytecode for foo { a }
|
||||
Compile bytecode for foo { args.size }
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Reference in New Issue
Block a user