JConnector 3.0.11 broken

Peter Wilm <[email protected]>
Newsgroups gmane.comp.db.mysql.bugs
Message-ID <20040528092944.34af6435@argon>
--------
import java.sql.*;

public class ConnectorTest {

  static public void main(String[] args) throws Exception {
      Class.forName("com.mysql.jdbc.Driver");
      Connection jdbcConnection = DriverManager.getConnection("jdbc:mysql://localhost:3306/ConnectorTest", "root", "password");
  }
}
---------

works fine with 3.0.12 but not with 3.0.13:

peter@argon:~/tmp$ java ConnectorTest
Exception in thread "main" java.sql.SQLException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "localhost"'.
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:409)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at ConnectorTest.main(ConnectorTest.java:8)


-- 
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.