Skip to content
Snippets Groups Projects
Commit 31420788 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Attached is a patch to remove the ConnectionHook functionality and thus

the JDK 1.3 dependency.  For a further explanation see my posting to the
JDBC list on Friday, explaining why this is being done.

Barry Lind
parent 84587e93
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
build file to allow ant (http://jakarta.apache.org/ant/) to be used build file to allow ant (http://jakarta.apache.org/ant/) to be used
to build the PostgreSQL JDBC Driver. to build the PostgreSQL JDBC Driver.
$Id: build.xml,v 1.15 2001/05/25 16:29:17 momjian Exp $ $Id: build.xml,v 1.16 2001/07/04 15:07:54 momjian Exp $
--> -->
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
--> -->
<target name="check_versions"> <target name="check_versions">
<available property="jdk1.2+" classname="java.lang.ThreadLocal" /> <available property="jdk1.2+" classname="java.lang.ThreadLocal" />
<available property="jdk1.3+" classname="java.lang.StrictMath" />
<available property="jdk1.2e+" classname="javax.sql.DataSource" /> <available property="jdk1.2e+" classname="javax.sql.DataSource" />
<available property="junit" classname="junit.framework.Test" /> <available property="junit" classname="junit.framework.Test" />
</target> </target>
...@@ -58,11 +57,6 @@ ...@@ -58,11 +57,6 @@
<property name="connectclass" value="org.postgresql.jdbc1.Connection" /> <property name="connectclass" value="org.postgresql.jdbc1.Connection" />
<available property="connectclass" value="org.postgresql.jdbc2.Connection" classname="java.lang.ThreadLocal" /> <available property="connectclass" value="org.postgresql.jdbc2.Connection" classname="java.lang.ThreadLocal" />
<!-- comment out 1.3+ stuff -->
<property name="jdk13only" value="//" />
<available property="jdk13only" value="" classname="java.lang.StrictMath" />
<filter token="JDK1.3ONLY" value="${jdk13only}" />
<!-- Some defaults --> <!-- Some defaults -->
<filter token="MAJORVERSION" value="${major}" /> <filter token="MAJORVERSION" value="${major}" />
<filter token="MINORVERSION" value="${minor}" /> <filter token="MINORVERSION" value="${minor}" />
...@@ -104,7 +98,6 @@ ...@@ -104,7 +98,6 @@
<target name="compile" depends="prepare,check_versions,driver"> <target name="compile" depends="prepare,check_versions,driver">
<javac srcdir="${src}" destdir="${dest}"> <javac srcdir="${src}" destdir="${dest}">
<include name="${package}/**" /> <include name="${package}/**" />
<exclude name="${package}/core/ConnectionHook.java" unless="jdk1.3+" />
<exclude name="${package}/jdbc1/**" if="jdk1.2+" /> <exclude name="${package}/jdbc1/**" if="jdk1.2+" />
<exclude name="${package}/jdbc2/**" unless="jdk1.2+" /> <exclude name="${package}/jdbc2/**" unless="jdk1.2+" />
<exclude name="${package}/largeobject/PGblob.java" unless="jdk1.2+" /> <exclude name="${package}/largeobject/PGblob.java" unless="jdk1.2+" />
......
...@@ -36,9 +36,6 @@ public class Driver implements java.sql.Driver ...@@ -36,9 +36,6 @@ public class Driver implements java.sql.Driver
// Placing it here, means that the driver is registered once only. // Placing it here, means that the driver is registered once only.
java.sql.DriverManager.registerDriver(new Driver()); java.sql.DriverManager.registerDriver(new Driver());
// New in 7.1 - register ourselves with the JVM - JDK1.3+ only
@JDK1.3ONLY@org.postgresql.core.ConnectionHook.init();
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment