I have a ResultSet object that I need to turn into an OracleResultSet so that I can call the getOPAQUE(String) method on it. I'm using c3p0 as my connection pool. The problem is that c3p0 wraps ResultSets in NewProxyResultSet objects.
This shouldn't be a problem because I should just be able to call unwrap on the ResultSet like this:
However, that doesn't work. It actually throws an AbstractMethodError:
It includes a stack trace, but it's not helpful because the top line of the stack trace just points to the exact line on which I call the unwrap method. That seems to indicate that NewProxyResultSet itself does not have unwrap implemented.
Is that expected bahavior? It seems like a bug to me. How can I take a NewProxyResultSet and get an OracleResultSet from it?