diff --git a/libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt b/libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt index 09c6518050c..950ea19d139 100644 --- a/libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt +++ b/libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt @@ -49,7 +49,7 @@ internal open class PlatformImplementations { @JvmField internal val IMPLEMENTATIONS: PlatformImplementations = run { val version = getJavaVersion() - if (version >= 0x10008) { + if (version >= 0x10008 || version < 0x10000) { try { return@run castToBaseType(Class.forName("kotlin.internal.jdk8.JDK8PlatformImplementations").newInstance()) } catch (e: ClassNotFoundException) { } @@ -58,7 +58,7 @@ internal val IMPLEMENTATIONS: PlatformImplementations = run { } catch (e: ClassNotFoundException) { } } - if (version >= 0x10007) { + if (version >= 0x10007 || version < 0x10000) { try { return@run castToBaseType(Class.forName("kotlin.internal.jdk7.JDK7PlatformImplementations").newInstance()) } catch (e: ClassNotFoundException) { }