JDBC driver compilation error - Mailing list pgsql-jdbc

From Arun Desai
Subject JDBC driver compilation error
Date
Msg-id 00a901c34c65$a229c480$0f6b3fca@arun
Whole thread Raw
In response to Prepared Statements  (Julien Le Goff <julien.legoff@laposte.net>)
Responses Re: JDBC driver compilation error
List pgsql-jdbc
Hi,
     I am using Postgresql 7.3.3 version. I have a Java application that talks to the database using JDBC. I wanted to use CallableStatement for functions that return refcursor. Since 7.3.3 jdbc driver does not support this feature (ofcourse I know it supports CallableStatement but not for invoking functions that return Refcursor), I had to get the latest JDBC sources from the CVS web and compile the driver. I am getting the following compilation errors. Can anyone please let me know how to get rid off them?
 
 
[javac] symbol  : method getOffset  (long)
    [javac] location: class java.util.TimeZone
    [javac]                     localoffset = java.util.Calendar.getInstance().getTimeZone().getOffset(millis);
    [javac]                                                                     ^
    [javac] /root/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java:2104: cannot resolve
symbol
    [javac] symbol  : method getOffset  (long)
    [javac] location: class java.util.TimeZone
    [javac]                     localoffset = java.util.Calendar.getInstance().getTimeZone().getOffset(millis);
    [javac]                                                                     ^
    [javac] /root/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java:2149: cannot resolve
symbol
    [javac] symbol  : method getOffset  (long)
    [javac] location: class java.util.TimeZone
    [javac]                     localoffset = java.util.Calendar.getInstance().getTimeZone().getOffset(millis);
    [javac]                                                                     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 3 errors
 
 
 
 
Thanks and Regards,
Arun Desai.
 

pgsql-jdbc by date:

Previous
From: Peter Kovacs
Date:
Subject: Re: Prepared Statements caching
Next
From: Kim Ho
Date:
Subject: Re: JDBC driver compilation error