I'm moving database from 11G to 12C. Application is currently running on java5 and uses ojdbc14.jar When I move to ojdbc6.jar, I get
java.lang.IllegalAccessError: tried to access class oracle.jdbc.driver.OracleResultSet
Upon opening up both jar files and comparing, I see that access modifier on OracleResultSet is no longer available in ojdbc6.jar
Question: Is there a way to override the import in the class at run time via java parameter instead of changing in the class and recompiling the code. The problem is, I no longer have source code hence looking for a way to overwrite the import made in a specific class.
I understand where or what is causing the error, need to know if there is a way to overwrite the import at run time.
import oracle.jdbc.driver.OracleResultSet;
import java.sql.ResultSet;
import java.sql.Clob;
import java.sql.PreparedStatement;
.
.other imports
I can change the import to oracle.jdbc.OracleResultSet and it will work.But I will have to make a direct change in .class file as source code is no longer available.