Mike Dawson
08/22/2023, 10:37 PMe: [ksp] java.lang.IllegalStateException: unhandled value type, please file a bug at <https://github.com/google/ksp/issues/new>
The exception is coming from here in utils.kt
// Workaround for java annotation value array type
// <https://github.com/google/ksp/issues/1329>
method.returnType.isArray -> {
if (result !is Array<*>) {
val value = { result.asArray(method, clazz) }
cache.getOrPut(Pair(method.returnType, value), value)
} else {
throw IllegalStateException("unhandled value type, $ExceptionMessage")
}
}
Anyone got any ideas what might be going on here, or any workaround / investigation suggestions?
As suggested by the exception: I filed a bug : https://github.com/google/ksp/issues/1503