Project

General

Profile

Bug #2706

Compile failure under Java 1.6 in DBConnection class

Added by Dan Higgins over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
general
Target version:
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!

History

#1 Updated by Dan Higgins over 12 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.

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 2706

Also available in: Atom PDF