Обсуждение: BUG #1141: jdbc-ant-script does not support java version 1.5

Поиск
Список
Период
Сортировка

BUG #1141: jdbc-ant-script does not support java version 1.5

От
"PostgreSQL Bugs List"
Дата:
The following bug has been logged online:

Bug reference:      1141
Logged by:          Christoph Lembeck

Email address:      chle4@wi.uni-muenster.de

PostgreSQL version: 7.4

Operating system:   SuSE Linux 9.0

Description:        jdbc-ant-script does not support java version 1.5

Details:

The ant-script build.xml tries to find out which Java version is used during
the installation of the database and uses this information to generate
Drivers for jdbc1, jdbc2 or jdbc3. Unfortunately the build script only knows
the Java-Versions 1.1 to 1.4, but not the new Java Version 1.5.

Using Java 1.5 together with the original build.xml file leads to the
problem, that none of the variables jdbc1, jdbc2 and jdbc3 will be set by
Ant and so the variable ${connectclass} will be unknown during the
generation of the file Driver.java. This leads to the problem that this
variable will not be replaced by ant and the string ${connectclass} will be
used in the Driver.java file instead of any real classname and the
compilation of the class will lead to an error message.

Checking wheter the user runns the ant script with the Java-Version 1.4 or
1.5 to force the script to generate JDBC 3 drivers will solve the problem...

Re: BUG #1141: jdbc-ant-script does not support java version

От
Kris Jurka
Дата:
On Sun, 25 Apr 2004, PostgreSQL Bugs List wrote:

> Description:        jdbc-ant-script does not support java version 1.5
>
> The ant-script build.xml tries to find out which Java version is used during
> the installation of the database and uses this information to generate
> Drivers for jdbc1, jdbc2 or jdbc3. Unfortunately the build script only knows
> the Java-Versions 1.1 to 1.4, but not the new Java Version 1.5.

I've fixed this in both the stable and development cvs branches.  I was
still using ant 1.5 which did not recognize the 1.5 jdk as being different
from the 1.4 jdk so I didn't encounter the problem.  An upgrade to ant 1.6
definitely shows the problem though.

Kris Jurka