You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Neil Aggarwal <ne...@JAMMConsulting.com> on 2008/07/12 05:13:48 UTC

Cannot compile DBCP 1.2.2

Hello:

I am trying to compile DBCP 1.2.2 from the source zip
file.

I am getting errors like these:
Cannot reduce the visibility of the inherited method from Statement
The type BasicDataSource must implement the inherited abstract method
Wrapper.isWrapperFor(Class)
The type BasicDataSource must implement the inherited abstract method
Wrapper.unwrap(Class)
The type ConnectionImpl must implement the inherited abstract method
Connection.createArrayOf(String, Object[])The type ConnectionImpl must
implement the inherited abstract method Connection.createBlob()
The type ConnectionImpl must implement the inherited abstract method
Connection.createClob()
The type ConnectionImpl must implement the inherited abstract method
Connection.createNClob()
The type ConnectionImpl must implement the inherited abstract method
Connection.createSQLXML()
 
etc.

It looks like the sources are out of sync with the JDBC interfaces.
What version of the JDK am I supposed to use to compile DBCP?

Thanks,
	Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details. 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: Cannot compile DBCP 1.2.2

Posted by Phil Steitz <ph...@steitz.com>.
Neil Aggarwal wrote:
> I am using JDK 6.
>
> So, I have two choices at this point:
> 1. Roll back to JDK 5.
> 2. Update the code to compile under JDK 6.
> 	It should be possible to preserve
> 	compatability with JDK 5.
>
> I will take option 2.
>
> Are any of the DBCP committers interested in
> patches once I finish?
>
>   
This issue is being tracked here
http://issues.apache.org/jira/browse/DBCP-191

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


RE: Cannot compile DBCP 1.2.2

Posted by Neil Aggarwal <ne...@JAMMConsulting.com>.
I am using JDK 6.

So, I have two choices at this point:
1. Roll back to JDK 5.
2. Update the code to compile under JDK 6.
	It should be possible to preserve
	compatability with JDK 5.

I will take option 2.

Are any of the DBCP committers interested in
patches once I finish?

Thanks,
	Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.  


> 1.4 or 1.5 should do (looks like you're using 1.6).


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: Cannot compile DBCP 1.2.2

Posted by Rahul Akolkar <ra...@gmail.com>.
On 7/11/08, Neil Aggarwal <ne...@jammconsulting.com> wrote:
> Hello:
>
>  I am trying to compile DBCP 1.2.2 from the source zip
>  file.
>
>  I am getting errors like these:
>  Cannot reduce the visibility of the inherited method from Statement
>  The type BasicDataSource must implement the inherited abstract method
>  Wrapper.isWrapperFor(Class)
>  The type BasicDataSource must implement the inherited abstract method
>  Wrapper.unwrap(Class)
>  The type ConnectionImpl must implement the inherited abstract method
>  Connection.createArrayOf(String, Object[])The type ConnectionImpl must
>  implement the inherited abstract method Connection.createBlob()
>  The type ConnectionImpl must implement the inherited abstract method
>  Connection.createClob()
>  The type ConnectionImpl must implement the inherited abstract method
>  Connection.createNClob()
>  The type ConnectionImpl must implement the inherited abstract method
>  Connection.createSQLXML()
>
>  etc.
>
>  It looks like the sources are out of sync with the JDBC interfaces.
>  What version of the JDK am I supposed to use to compile DBCP?
>
<snip/>

1.4 or 1.5 should do (looks like you're using 1.6).

-Rahul


>  Thanks,
>         Neil
>
>  --
>  Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
>  Eliminate junk email and reclaim your inbox.
>  Visit http://www.spammilter.com for details.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org