C
Chris
I've got a puzzling problem. Our code runs fine under JDK 1.5. I
downloaded JDK 1.6 today, recompiled, and got errors.
The trouble is that one of our classes implements the java.sql.ResultSet
interface, and they changed the interface to include more methods. For
example:
public RowId getRowId(int columnIndex);
Ok, no problem, I just went ahead and implemented that method in our
code (and just threw an UnsupportedOperationException in the method body).
The trouble is that now the code won't compile under JDK 1.5 because
RowId is a new class in 1.6 and doesn't exist in 1.5.
So I appear to have an impossible situation: no way to make the code
compilable under 1.5 and 1.6 at the same time.
What's the way out?
downloaded JDK 1.6 today, recompiled, and got errors.
The trouble is that one of our classes implements the java.sql.ResultSet
interface, and they changed the interface to include more methods. For
example:
public RowId getRowId(int columnIndex);
Ok, no problem, I just went ahead and implemented that method in our
code (and just threw an UnsupportedOperationException in the method body).
The trouble is that now the code won't compile under JDK 1.5 because
RowId is a new class in 1.6 and doesn't exist in 1.5.
So I appear to have an impossible situation: no way to make the code
compilable under 1.5 and 1.6 at the same time.
What's the way out?