File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/modifications Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import org.utbot.framework.plugin.api.ClassId
44import org.utbot.framework.plugin.api.ConstructorId
55import org.utbot.framework.plugin.api.FieldId
66import org.utbot.framework.plugin.api.id
7+ import org.utbot.framework.plugin.api.util.isArray
78import org.utbot.framework.plugin.api.util.isRefType
9+ import org.utbot.framework.plugin.api.util.jClass
810import soot.Scene
911import soot.SootMethod
1012import soot.Type
@@ -248,7 +250,11 @@ class ConstructorAnalyzer {
248250 */
249251 private fun getParameterType (type : ClassId ): Type ? =
250252 try {
251- if (type.isRefType) scene.getRefType(type.name) else scene.getType(type.name)
253+ when {
254+ type.isRefType -> scene.getRefType(type.name)
255+ type.isArray -> scene.getType(type.jClass.canonicalName)
256+ else -> scene.getType(type.name)
257+ }
252258 } catch (e: Exception ) {
253259 null
254260 }
You can’t perform that action at this time.
0 commit comments