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 }