GSSCredential
Mark Rotteveel
mark at lawinegevaar.nl
Tue Jun 11 13:44:43 UTC 2019
On 2019-06-11 13:19, Philippe Marschall wrote:
> On 08.06.19 10:00, Mark Rotteveel wrote:
>> I did some experiments, including generating a Proxy and using
>> (direct) reflection. When using the full runtime this will not yield a
>> problem, but in a fully modularized Java (built with jlink) generating
>> a Proxy will yield a `NoClassDefFoundError` like shown below (and
>> similar for calling `getDeclaredMethods` on the class implementing the
>> interface or on the interface).
>
> I also did a small experiment [1] and adding #gssCredential as a
> default method removes the need for implementations to depend on
> java.security.jgss. SQLFeatureNotSupportedException would probably be
> more appropriate here.
> I don't think this will help with proxies.
That would compromise the API design as discussed earlier in the thread:
none of the other methods of ConnectionBuilder throw SQLException.
And in any case, it will not help with proxies which will still break
with NoClassDefFoundError.
Mark
More information about the jdbc-spec-discuss
mailing list