Buggy code:
public abstract class EmbeddedBaseDataSource implements Serializable , EmbeddedDataSourceInterface { private static final long serialVersionUID = 1872877359127597176L ; protected String description ; protected String dataSourceName ; protected String databaseName ; protected String connectionAttributes ; protected String createDatabase ; protected String shutdownDatabase ; protected boolean attributesAsPassword ; private String shortDatabaseName ; private String password ; private String user ; protected int loginTimeout ; private transient PrintWriter printer ; protected transient String jdbcurl ; protected transient InternalDriver driver ; public EmbeddedBaseDataSource ( ) { } public final synchronized void setDatabaseName ( String databaseName ) { } public String getDatabaseName ( ) { } protected String getShortDatabaseName ( ) { } public final void setDataSourceName ( String dsn ) { } public final String getDataSourceName ( ) { } public final void setDescription ( String desc ) { } public final String getDescription ( ) { } public final void setUser ( String user ) { } public final String getUser ( ) { } public final void setPassword ( String password ) { } public final String getPassword ( ) { } public int getLoginTimeout ( ) throws SQLException { } public void setLoginTimeout ( int seconds ) throws SQLException { } public PrintWriter getLogWriter ( ) throws SQLException { } public void setLogWriter ( PrintWriter out ) throws SQLException { } protected void update ( ) { } public final void setCreateDatabase ( String create ) { } public final String getCreateDatabase ( ) { } InternalDriver findDriver ( ) throws SQLException { } public final void setConnectionAttributes ( String prop ) { } public final String getConnectionAttributes ( ) { } public final void setShutdownDatabase ( String shutdown ) { } public final String getShutdownDatabase ( ) { } public final void setAttributesAsPassword ( boolean attributesAsPassword ) { } public final boolean getAttributesAsPassword ( ) { } public boolean equals ( Object p0 ) { } public Connection getConnection ( ) throws SQLException { } public Connection getConnection ( String username , String password ) throws SQLException { } final Connection getConnection ( String username , String password , boolean requestPassword ) throws SQLException { Properties info = new Properties ( ) ; if ( username != null ) { info . put ( USERNAME_ATTR , username ) ; } if ( ( ! requestPassword ) || ( ! ( attributesAsPassword ) ) ) { if ( password != null ) { info . put ( PASSWORD_ATTR , password ) ; } } if ( ( createDatabase ) != null ) { info . put ( CREATE_ATTR , "true" ) ; } if ( ( shutdownDatabase ) != null ) { info . put ( SHUTDOWN_ATTR , "true" ) ; } String url = jdbcurl ; if ( ( ( attributesAsPassword ) && requestPassword ) && ( password != null ) ) { StringBuffer sb = new StringBuffer ( ( ( ( url . length ( ) ) + ( password . length ( ) ) ) + 1 ) ) ; sb . append ( url ) ; sb . append ( ';' ) ; sb . append ( password ) ; url = sb . toString ( ) ; } <START_BUG> Connection conn = findDriver ( ) . connect ( url , info ) ; <END_BUG> if ( conn == null ) { throw Util . generateCsSQLException ( PROPERTY_INVALID_VALUE , DBNAME_ATTR , getDatabaseName ( ) ) ; } return conn ; } public boolean isWrapperFor ( Class < ? > iface ) throws SQLException { } public < T > T unwrap ( Class < T > iface ) throws SQLException { } protected static ResourceAdapter setupResourceAdapter ( EmbeddedXADataSourceInterface ds , ResourceAdapter ra , String user , String password , boolean requestPassword ) throws SQLException { } }

Fix:
Connection conn = findDriver ( ) . connect ( url , info , loginTimeout ) ;