I’m trying to use the `Throwable`type through this...
# squarelibraries
j
I’m trying to use the `Throwable`type through this code :
Copy code
val error = TypeVariableName(
    name = "Error",
    bounds = listOf(ClassName(Throwable::class.java.packageName, Throwable::class.java.simpleName)),
)
but kotlin poet automatically add
import java.lang.Throwable
. How can I make it use
kotlin.Throwable
instead of the java one? I tried to specify it in the
ClassName
declaration but it did’t work.