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
4
4
import org.utbot.framework.plugin.api.ConstructorId
5
5
import org.utbot.framework.plugin.api.FieldId
6
6
import org.utbot.framework.plugin.api.id
7
+ import org.utbot.framework.plugin.api.util.isArray
7
8
import org.utbot.framework.plugin.api.util.isRefType
9
+ import org.utbot.framework.plugin.api.util.jClass
8
10
import soot.Scene
9
11
import soot.SootMethod
10
12
import soot.Type
@@ -248,7 +250,11 @@ class ConstructorAnalyzer {
248
250
*/
249
251
private fun getParameterType (type : ClassId ): Type ? =
250
252
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
+ }
252
258
} catch (e: Exception ) {
253
259
null
254
260
}
You can’t perform that action at this time.
0 commit comments