cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "satish babu krishnamoorthy (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3275) Make Cassandra compile under JDK 7
Date Fri, 30 Sep 2011 05:46:45 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-3275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117898#comment-13117898
] 

satish babu krishnamoorthy commented on CASSANDRA-3275:
-------------------------------------------------------

In JDK7 several new methods are added to support JDBC 4.1, Need to update drivers to fix these
errors

Area: API: JDBC
Synopsis: New JDBC Methods, Including new Methods in Interfaces
Description: For the Java SE 7 release, there are new methods to support JDBC 4.1. This includes
methods added to the java.sql.Connection, java.sql.Driver, javax.sql.CommonDatasource, and
java.sql.Statement interfaces. Because all methods of an interface must be implemented, previous
code that uses these interfaces will not compile on Java SE 7 unless you add the new methods.
See the JDBC documentation for more information.
Nature of Incompatibility: source

http://www.oracle.com/technetwork/java/javase/compatibility-417013.html

                
> Make Cassandra compile under JDK 7
> ----------------------------------
>
>                 Key: CASSANDRA-3275
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3275
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Pavel Yaskevich
>            Assignee: Rick Shaw
>             Fix For: 1.0.0
>
>
> Currently system won't compile under JDK 7 because of errors in CQL JDBC component.
> {noformat}
>     [javac] /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CResultSet.java:39:
error: CResultSet is not abstract and does not override abstract method <T>getObject(String,Class<T>)
in ResultSet
>     [javac] class CResultSet extends AbstractResultSet implements CassandraResultSet
>     [javac] ^
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in method <T>getObject(String,Class<T>)
>     [javac] /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CassandraConnection.java:81:
error: CassandraConnection is not abstract and does not override abstract method getNetworkTimeout()
in Connection
>     [javac] class CassandraConnection extends AbstractCassandraConnection implements
Connection
>     [javac] ^
>     [javac] /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CassandraDataSource.java:24:
error: CassandraDataSource is not abstract and does not override abstract method getParentLogger()
in CommonDataSource
>     [javac] public class CassandraDataSource implements DataSource
>     [javac]        ^
>     [javac] /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CassandraDatabaseMetaData.java:32:
error: CassandraDatabaseMetaData is not abstract and does not override abstract method generatedKeyAlwaysReturned()
in DatabaseMetaData
>     [javac] class CassandraDatabaseMetaData implements DatabaseMetaData
>     [javac] ^
>     [javac] /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CassandraDriver.java:40:
error: CassandraDriver is not abstract and does not override abstract method getParentLogger()
in Driver
>     [javac] public class CassandraDriver implements Driver
>     [javac]        ^
>     [javac] /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CassandraStatement.java:50:
error: CassandraStatement is not abstract and does not override abstract method isCloseOnCompletion()
in Statement
>     [javac] class CassandraStatement extends AbstractStatement implements Statement
>     [javac] ^
>     [javac] /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CassandraPreparedStatement.java:61:
error: CassandraPreparedStatement is not abstract and does not override abstract method isCloseOnCompletion()
in Statement
>     [javac] class CassandraPreparedStatement extends CassandraStatement implements PreparedStatement
>     [javac] ^
>     [javac] Note: /usr/src/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/CassandraPreparedStatement.java
uses or overrides a deprecated API.
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message