From 788b1831a6152004068685a6c222899505f79d18 Mon Sep 17 00:00:00 2001 From: Mattia Tommasone Date: Thu, 13 Jan 2022 00:11:33 +0100 Subject: [PATCH] Temporarily remove jdk 16 and 17 --- .github/workflows/gradle.yml | 7 +------ .../jvm/src/main/kotlin/io/mockk/impl/InternalPlatform.kt | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 14cbd8f83..26a1f30df 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -10,14 +10,9 @@ jobs: tests: strategy: matrix: - java-version: [11, 12, 13, 14, 15, 16, 17] + java-version: [11, 12, 13, 14, 15] kotlin-version: [1.4.32, 1.5.31, 1.6.0] kotlin-ir-enabled: [true, false] - exclude: - - kotlin-version: 1.4.32 - java-version: 16 - - kotlin-version: 1.4.32 - java-version: 17 # in case one JDK fails, we still want to see results from others fail-fast: false runs-on: ubuntu-latest diff --git a/mockk/jvm/src/main/kotlin/io/mockk/impl/InternalPlatform.kt b/mockk/jvm/src/main/kotlin/io/mockk/impl/InternalPlatform.kt index a0496bd06..13b72b310 100644 --- a/mockk/jvm/src/main/kotlin/io/mockk/impl/InternalPlatform.kt +++ b/mockk/jvm/src/main/kotlin/io/mockk/impl/InternalPlatform.kt @@ -103,10 +103,6 @@ actual object InternalPlatform { actual fun copyFields(to: T, from: T) { fun copy(to: Any, from: Any, cls: Class<*>) { for (field in cls.declaredFields) { - if (Modifier.isTransient(field.modifiers)) { - continue - } - if (Modifier.isStatic(field.modifiers)) { continue }