Drop support for JVM 1.4 in debugger

Kotlin can't run on such JVM anyway.
This commit is contained in:
Nikolay Krasko
2017-08-02 18:26:49 +03:00
parent 0e4089ef8e
commit 3ea4a7fb47
@@ -261,12 +261,8 @@ class KotlinPositionManager(private val myDebugProcess: DebugProcess) : MultiReq
val line = position.line + 1
val locations = if (myDebugProcess.virtualMachineProxy.versionHigher("1.4"))
type.locationsOfLine(KOTLIN_STRATA_NAME, null, line).filter { it.sourceName(KOTLIN_STRATA_NAME) == position.file.name }
else
type.locationsOfLine(line)
if (locations == null || locations.isEmpty()) {
val locations = type.locationsOfLine(KOTLIN_STRATA_NAME, null, line).filter { it.sourceName(KOTLIN_STRATA_NAME) == position.file.name }
if (locations.isEmpty()) {
throw NoDataException.INSTANCE
}