db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew McIntyre" <mcintyr...@gmail.com>
Subject Reference to org.apache.derby.impl.Util in client NetConnection40?
Date Wed, 02 Aug 2006 01:44:53 GMT
I'm working on DERBY-1424, building the client jar with classlister,
and after adding NetConnection40 to the list of entry points for the
dependency checker, the dependency list contained several hundred
engine classes.

NetConnection40.java contains this:

import org.apache.derby.impl.jdbc.Util;
    public boolean isValid(int timeout) throws SQLException {
        // Validate that the timeout has a legal value
        if (timeout < 0) {
            throw Util.generateCsSQLException(SQLState.INVALID_API_PARAMETER,
                                              new Integer(timeout), "timeout",

Shouldn't the client be using its own machinery to generate
exceptions? Also, this bit of code would throw a
ClassNotFoundException for Util if a user were running with just
derbyclient.jar as it is.

I'll file a bug shortly.


View raw message