We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JcType.classId
1 parent d7134b7 commit f523512Copy full SHA for f523512
utbot-junit-contest/src/main/kotlin/org/utbot/contest/usvm/converter/ConverterUtils.kt
@@ -67,8 +67,11 @@ private fun JcType.replaceToBoundIfGeneric(): JcType {
67
val JcType?.classId: ClassId
68
get() {
69
if (this !is JcPrimitiveType) {
70
- return this?.replaceToBoundIfGeneric()?.toJavaClass(utContext.classLoader)?.id
71
- ?: error("Can not construct classId for $this")
+ return runCatching {
+ this?.replaceToBoundIfGeneric()?.toJavaClass(utContext.classLoader)?.id ?: error("Can not construct classId for $this")
72
+ }.getOrElse { e ->
73
+ throw IllegalStateException("JcType.classId failed on ${this?.typeName}", e)
74
+ }
75
}
76
77
val cp = this.classpath
0 commit comments