Opened 15 years ago

Closed 15 years ago

#21549 closed defect (fixed)

mysql-connector-java build fails in snow leopard

Reported by: macport-snhhome@… Owned by: jberry@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: java mysql jdk6 Cc: nox@…
Port: mysql-connector-java

Description

Compiling mysql-connector-java @5.0.7_0 fails in snow leopard.

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_mysql-connector-java/work/mysql-connector-java-5.0.7" && ant dist -Djunit.jar=/opt/local/share/java/junit.jar -Dlog4j.jar=/opt/local/share/java/jakarta-log4j.jar " returned error 1
Command output:     [javac]        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_mysql-connector-java/work/mysql-connector-java-5.0.7/build/mysql-connector-java-5.0.7/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java:52: com.mysql.jdbc.jdbc2.optional.CallableStatementWrapper is not abstract and does not override abstract method setNClob(java.lang.String,java.io.Reader) in java.sql.CallableStatement
    [javac] public class CallableStatementWrapper extends PreparedStatementWrapper
    [javac]        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_mysql-connector-java/work/mysql-connector-java-5.0.7/build/mysql-connector-java-5.0.7/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java:57: com.mysql.jdbc.jdbc2.optional.ConnectionWrapper is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection
    [javac] public class ConnectionWrapper extends WrapperBase implements Connection {
    [javac]        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_mysql-connector-java/work/mysql-connector-java-5.0.7/build/mysql-connector-java-5.0.7/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java:48: com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection is not abstract and does not override abstract method removeStatementEventListener(javax.sql.StatementEventListener) in javax.sql.PooledConnection
    [javac] public class MysqlPooledConnection implements PooledConnection {
    [javac]        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_mysql-connector-java/work/mysql-connector-java-5.0.7/build/mysql-connector-java-5.0.7/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java:49: com.mysql.jdbc.jdbc2.optional.MysqlDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
    [javac] public class MysqlDataSource extends ConnectionProperties implements
    [javac]        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_mysql-connector-java/work/mysql-connector-java-5.0.7/build/mysql-connector-java-5.0.7/com/mysql/jdbc/jdbc2/optional/MysqlXAConnection.java:61: com.mysql.jdbc.jdbc2.optional.MysqlXAConnection is not abstract and does not override abstract method removeStatementEventListener(javax.sql.StatementEventListener) in javax.sql.PooledConnection
    [javac] public class MysqlXAConnection extends MysqlPooledConnection implements
    [javac]        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_mysql-connector-java/work/mysql-connector-java-5.0.7/build/mysql-connector-java-5.0.7/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java:15: com.mysql.jdbc.jdbc2.optional.SuspendableXAConnection is not abstract and does not override abstract method removeStatementEventListener(javax.sql.StatementEventListener) in javax.sql.PooledConnection
    [javac] public class SuspendableXAConnection extends MysqlPooledConnection implements
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 22 errors
    [javac] 5 warnings

Attachments (1)

mysql-connector-java-JDK-1.6.diff (99.6 KB) - added by nox@… 15 years ago.
A patch to make it work on Snow Leopard

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jberry@…

comment:2 Changed 15 years ago by nox@…

Cc: nox@… added

Cc Me!

Changed 15 years ago by nox@…

A patch to make it work on Snow Leopard

comment:3 Changed 15 years ago by nox@…

Keywords: jdk6 added
Version: 1.8.0

I've just attached a patch which implements all of the abstract methods from JDK 1.6 to make it build correctly from Snow Leopard.

comment:4 Changed 15 years ago by nox@…

Resolution: fixed
Status: newclosed

As the port is openmaintained and the port doesn't work anyway on SL, I've committed it, see r61130.

Note: See TracTickets for help on using tickets.