[ 
https://issues.apache.org/jira/browse/BEANUTILS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niall Pemberton resolved BEANUTILS-243.
---------------------------------------

    Resolution: Fixed
      Assignee: Niall Pemberton

I changed the two test implementations of  ResultSet and ResultSetMetaData to 
now implement InvocationHandler - tests are now compiled and run by creating 
proxies of these interfaces, rather than trying to implement them. Tested on 
JDK 1.3.1_18, JDK 1.5.0_07 and JDK 1.6.0 and all tests compiled and ran 
successfully.

> BeanUtils fails to compile under 1.6
> ------------------------------------
>
>                 Key: BEANUTILS-243
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-243
>             Project: Commons BeanUtils
>          Issue Type: Bug
>            Reporter: Henri Yandell
>         Assigned To: Niall Pemberton
>             Fix For: 1.8.0
>
>         Attachments: BEANUTILS-243.patch
>
>
>     [javac] Compiling 86 source files to 
> /home/hen/apache/jakarta/commons-proper/beanutils/target/test-classes
> /home/hen/apache/jakarta/commons-proper/beanutils/src/test/org/apache/commons/beanutils/TestResultSet.java:49:
>  org.apache.commons.beanutils.TestResultSet is not abstract and does not 
> override abstract method updateNClob(java.lang.String,java.io.Reader,long) in 
> java.sql.ResultSet
> public class TestResultSet implements ResultSet {
>        ^
> /home/hen/apache/jakarta/commons-proper/beanutils/src/test/org/apache/commons/beanutils/TestResultSetMetaData.java:34:
>  org.apache.commons.beanutils.TestResultSetMetaData is not abstract and does 
> not override abstract method isWrapperFor(java.lang.Class) in java.sql.Wrapper
> public class TestResultSetMetaData implements ResultSetMetaData {
>        ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 2 errors
> BUILD FAILED
> (Presumably a bunch of new methods have been added to that class in the JDBC 
> in 1.6)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to