Claude Brisson
01/21/2022, 8:48 PM// commonMain file Expectations.kt
package foo
expect class SQLException
// jvmMain file SQLException.kt
package foo
actual typealias SQLException = java.sql.Exception
The -jvm.jar contains SQLExceptionKt.class, but no SQLException.class. In a JVM consumer library, the type foo.SQLException is unknown.
Of course, there's the workaround to always use java.sql.SQLException in the JVM, but if the consumer library wants to implement an interface with @Throws(foo.SQLException::class), it's not possible.itnoles
01/21/2022, 8:53 PMClaude Brisson
01/21/2022, 9:02 PMClaude Brisson
01/21/2022, 9:09 PM