We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b01c4bd commit c0a58abCopy full SHA for c0a58ab
src/main/kotlin/com/fasterxml/jackson/module/kotlin/MethodValueCreator.kt
@@ -34,7 +34,7 @@ internal class MethodValueCreator<T> private constructor(
34
instance to initialCallableAccessible
35
} catch (ex: IllegalAccessException) {
36
// fallback for when an odd access exception happens through Kotlin reflection
37
- possibleCompanion.java.enclosingClass.fields
+ possibleCompanion.java.enclosingClass.declaredFields
38
.firstOrNull { it.type.kotlin.isCompanion }
39
?.let {
40
it.isAccessible = true
0 commit comments