Lance Andersen lance.andersen at
Wed May 29 17:43:32 UTC 2019

When/if an update is made it will be in  JDBC 4.4 as part of an MR.

I do not have a timeframe for an MR as of this time.  I am gathering small things for an MR but not at that point yet.

Not sure there is a need for ConnectionBuilder to extend Wrapper given you can unwrap the Connection if needed.

> On May 29, 2019, at 1:25 PM, Mark Rotteveel <mark at> wrote:
> On 28-5-2019 20:54, Douglas Surber wrote:
>> We have received a request to add the following method to java.sql.ConnectionBuilder.
>>   /**
>>    * Provide a GSSCredential to authenticate the connection with the server.
>>    *
>>    * @param credential used to authenticate the connection. Not null.
>>    * @return this ConnectionBuilder
>>    * @throws SQLException if an error occurs.
>>    */
>>   ConnectionBuilder gssCredential(org.ietf.jgss.GSSCredential credential) throws SQLException;
>> Any thoughts?
> It needs to be documented that this is an optional method, and the documentation must include a @throws SQLFeatureNotSupportedException to that effect. The default implementation should throw SQLFeatureNotSupportedException.
> Addition of this to ConnectionBuilder, also warrants the question if a similar method should be added to javax.sql.CommonDataSource (although maybe lifetime of credentials are a factor here)
> Also, looking at ConnectionBuilder, shouldn't it extend java.sql.Wrapper (eg to 'unwrap' to implementation specifics)?
> BTW: In what form will these changes land, is there a JDBC 4.4 in the works, or will these just be an update to the API without a formal JDBC maintenance version?
> Mark
> -- 
> Mark Rotteveel

 <> <>
 <>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at <mailto:Lance.Andersen at>

More information about the jdbc-spec-discuss mailing list