Skip to content

Commit

Permalink
fix compile error for jdk 20
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed Aug 23, 2023
1 parent 9d17939 commit 55fef79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import java.io.InputStream
import java.io.Reader
import java.math.BigDecimal
import java.math.BigInteger
import java.net.URI
import java.net.URL
import java.sql.*
import java.sql.Date
Expand Down Expand Up @@ -1153,7 +1154,7 @@ public open class CachedRowSet(rs: ResultSet) : ResultSet {
return when (val value = getColumnValue(columnIndex)) {
null -> null
is URL -> value
is String -> URL(value)
is String -> URI(value).toURL()
else -> throw SQLException("Cannot convert ${value.javaClass.name} value to URL.")
}
}
Expand Down

0 comments on commit 55fef79

Please sign in to comment.