File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
utbot-fuzzers/src/main/kotlin/org/utbot/fuzzing Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ private fun toFuzzerType(type: Type): FuzzedType {
118
118
}
119
119
FuzzedType (classId)
120
120
}
121
- is Class <* > -> FuzzedType (type.id)
121
+ is Class <* > -> FuzzedType (type.id, type.typeParameters.map { toFuzzerType(it) } )
122
122
else -> error(" Unknown type: $type " )
123
123
}
124
124
}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class MapValueProvider(
83
83
yield (FuzzedType (java.util.TreeMap ::class .id, listOf (keyGeneric, valueGeneric)))
84
84
}
85
85
}
86
- else -> yieldConcreteClass(type)
86
+ else -> yieldConcreteClass(FuzzedType ( type.classId, listOf (keyGeneric, valueGeneric)) )
87
87
}
88
88
}
89
89
@@ -126,7 +126,7 @@ class ListSetValueProvider(
126
126
yield (FuzzedType (java.util.TreeSet ::class .id, listOf (generic)))
127
127
}
128
128
}
129
- else -> yieldConcreteClass(type)
129
+ else -> yieldConcreteClass(FuzzedType ( type.classId, listOf (generic)) )
130
130
}
131
131
}
132
132
@@ -154,7 +154,7 @@ abstract class CollectionValueProvider(
154
154
}
155
155
156
156
protected suspend fun SequenceScope<FuzzedType>.yieldConcreteClass (type : FuzzedType ) {
157
- if (with (type.classId) { ! isAbstract && isPublic && isStatic }) {
157
+ if (with (type.classId) { ! isAbstract && isPublic && ( ! isInner || isStatic) }) {
158
158
val emptyConstructor = type.classId.allConstructors.find { it.parameters.isEmpty() }
159
159
if (emptyConstructor != null && emptyConstructor.isPublic) {
160
160
yield (type)
You can’t perform that action at this time.
0 commit comments