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 01915e2 commit 2eba510Copy full SHA for 2eba510
src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinValueInstantiator.kt
@@ -157,7 +157,7 @@ internal class KotlinValueInstantiator(
157
} catch (ex: IllegalAccessException) {
158
// fallback for when an odd access exception happens through Kotlin reflection
159
val companionField = possibleCompanion.java.enclosingClass.fields.firstOrNull { it.type.kotlin.isCompanion }
160
- ?: throw ex
+ ?: throw ex
161
val accessible = companionField.isAccessible
162
if ((!accessible && ctxt.config.isEnabled(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS)) ||
163
(accessible && ctxt.config.isEnabled(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS))
0 commit comments