IndexOutOfBounds exception thrown by java.sql.Connection.isValid()
I have a daemon that keeps a SQL connection open. It periodically checks the status of the connection using java.sql.Connection.isValid.
I've been running this for months. Today I saw the method throw exception java.lang.IndexOutOfBoundsException. I dealt with it like I would an SQLException, but it suggests that there is a bug in the JDBC driver.
Here's the method: