Minor: Fix exception message
This commit is contained in:
@@ -95,7 +95,7 @@ class SingleInstructionInterpreter(private val eval: Eval) : Interpreter<Value>(
|
||||
val sort = cst.sort
|
||||
when (sort) {
|
||||
Type.OBJECT, Type.ARRAY -> eval.loadClass(cst)
|
||||
Type.METHOD -> throw UnsupportedByteCodeException("Mothod handles are not supported")
|
||||
Type.METHOD -> throw UnsupportedByteCodeException("Method handles are not supported")
|
||||
else -> throw UnsupportedByteCodeException("Illegal LDC constant " + cst)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ class JDIEval(
|
||||
Type.CHAR_TYPE -> MethodDescription("java/lang/Character", "valueOf", "(C)Ljava/lang/Character;", false)
|
||||
Type.FLOAT_TYPE -> MethodDescription("java/lang/Float", "valueOf", "(F)Ljava/lang/Float;", false)
|
||||
Type.DOUBLE_TYPE -> MethodDescription("java/lang/Double", "valueOf", "(D)Ljava/lang/Double;", false)
|
||||
else -> throw UnsupportedOperationException("Couldn't box non primitive type ${value.asmType.internalName}")
|
||||
else -> throw UnsupportedOperationException("Couldn't box non-primitive type ${value.asmType.internalName}")
|
||||
}
|
||||
return invokeStaticMethod(method, listOf(value))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user