Project

General

Profile

Actions

Bug #2706

closed

Compile failure under Java 1.6 in DBConnection class

Added by Dan Higgins over 17 years ago. Updated over 17 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!

Actions #1

Updated by Dan Higgins over 17 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 #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 2706

Actions

Also available in: Atom PDF