You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update util methods to work with fields of exact classes
Instead of searching the class hierarchy bottom to top until a field with a specified name is found we now search the field in its actual declaring class directly. That means that now we will not be able to access the wrong field by stopping too soon in the bottom to top search as we could before.
Copy file name to clipboardExpand all lines: utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/builtin/ReflectionBuiltins.kt
Copy file name to clipboardExpand all lines: utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/builtin/UtilMethodBuiltins.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ internal val ClassId.setFieldMethodId: MethodId
Copy file name to clipboardExpand all lines: utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgVariableConstructor.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ internal class CgVariableConstructor(val context: CgContext) :
145
145
fieldAccess `=` variableForField
146
146
} else {
147
147
// composite models must not have info about static fields, hence only non-static fields are set here
0 commit comments