how can I typecast NewProxyConnection into AS400JDBCConnection
问题 I am new to Spring . I am using ComboPooledDataSource for connection pooling in Spring. I am using the AS400 for making the connection. My problem is that when I am using this connection and try to typecast this AS400JDBCConnection as400Conn = (AS400JDBCConnection)conn; It gives the ClassCastCastException because the connection object returned by the ComboPooledDataSource is of type NewProxyConnection how can I typecast it into AS400JDBCConnection. 回答1: Spring does support unwrapping the