S
Scott Simpson
How do I fulfill a contract across two different Java versions? That is, how
do I make the code that implements my contract portable.
Specifically, I have a class that implements the interface
java.sql.Connection. The code is written for JDK 1.3. In JDK 1.4 they added
some functions like prepareStatement(String,String[]) and savepoint(). If I
try to compile under JDK 1.4 it breaks because I don't have all the
functions for the interface contract defined.
I was hoping there might be some type of "prototype" object I could inherit
from to solve this problem. This prototype object would be portable across
versions and would fill in any methods I didn't write myself.
Thanks for any help.
do I make the code that implements my contract portable.
Specifically, I have a class that implements the interface
java.sql.Connection. The code is written for JDK 1.3. In JDK 1.4 they added
some functions like prepareStatement(String,String[]) and savepoint(). If I
try to compile under JDK 1.4 it breaks because I don't have all the
functions for the interface contract defined.
I was hoping there might be some type of "prototype" object I could inherit
from to solve this problem. This prototype object would be portable across
versions and would fill in any methods I didn't write myself.
Thanks for any help.