File tree Expand file tree Collapse file tree
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api
utbot-framework/src/main/kotlin/org/utbot/engine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -520,7 +520,6 @@ data class UtDirectSetFieldModel(
520520 val fieldId : FieldId ,
521521 val fieldModel : UtModel ,
522522) : UtStatementModel(instance) {
523-
524523 override fun toString (): String = withToStringThreadLocalReentrancyGuard {
525524 val modelRepresentation = when (fieldModel) {
526525 is UtAssembleModel -> fieldModel.modelName
Original file line number Diff line number Diff line change @@ -639,7 +639,11 @@ class Traverser(
639639 SECURITY_FIELD_SIGNATURE -> SecurityManager ()
640640 FIELD_FILTER_MAP_FIELD_SIGNATURE -> mapOf (Reflection ::class to arrayOf(" fieldFilterMap" , " methodFilterMap" ))
641641 METHOD_FILTER_MAP_FIELD_SIGNATURE -> emptyMap<Class <* >, Array <String >>()
642- else -> field.fieldId.field.let { it.withAccessibility { it.get(null ) } }
642+ else -> {
643+ val id = field.fieldId
644+ val jField = id.field
645+ jField.let { it.withAccessibility { it.get(null ) } }
646+ }
643647 }
644648
645649 private fun isStaticInstanceInMethodResult (id : ClassId , methodResult : MethodResult ? ) =
You can’t perform that action at this time.
0 commit comments