Actions
Bug #2706
closedCompile failure under Java 1.6 in DBConnection class
Start date:
12/17/2006
Due date:
% Done:
0%
Estimated time:
Bugzilla-Id:
2706
Description
org.ecoinformatics.util.DBConnection is "a simple wrapper around a java.sql.Connection." However, the Connection class has some added methods in the newly released Java 1.6. This causes the error
[javac] C:\work\kepler\build\src\org\ecoinformatics\util\DBConnectionFactory
.java:74: org.ecoinformatics.util.DBConnection is abstract; cannot be instantiat
ed
[javac] return new DBConnection(conn);
[javac] ^
when Kepler is compiled under Java 1.6.
Need to wrap additonal 1.6 methods but still insure the code works for java 1.5 and below!
Updated by Dan Higgins almost 18 years ago
Currently need to include a few commented out lines in DBConnection when compiling under 1.6; a version compiled and saved under 1.5 will run under 1.6 OK.
Actions