GSSCredential

Douglas Surber douglas.surber at oracle.com
Fri Jun 7 15:57:19 UTC 2019


And here is the result with requires java.security.jgss instead of requires static.

> dhcp-10-159-154-205:~ douglas.surber$ tmp/bin/java --list-modules
> bar.sql
> baz
> com.bar
> java.base at 11.0.1
> java.logging at 11.0.1
> java.naming at 11.0.1
> java.security.jgss at 11.0.1
> java.security.sasl at 11.0.1
> dhcp-10-159-154-205:~ douglas.surber$ 


> On Jun 7, 2019, at 8:53 AM, Douglas Surber <douglas.surber at oracle.com> wrote:
> 
> Yes.
> 
>> dhcp-10-159-154-205:~ douglas.surber$ rm -rf tmp; $JAVA_HOME/bin/jlink --module-path /Users/douglas.surber/NetBeansProjects/Bar/build/modules:jmods --add-modules com.bar --output tmp
>> dhcp-10-159-154-205:~ douglas.surber$ tmp/bin/java --list-modules
>> bar.sql
>> baz
>> com.bar
>> java.base at 11.0.1
>> dhcp-10-159-154-205:~ douglas.surber$ 
> 
> 
>> On Jun 7, 2019, at 12:00 AM, Philippe Marschall <pm at netcetera.ch> wrote:
>> 
>> On 06.06.19 18:54, Douglas Surber wrote:
>>> I built a test case. "requires static" does exactly what we need. Adding gssCredential(GSSCredential credential) to ConnectionBuilder does not require user code to include the module java.security.jgss unless they actually mention the type. So assuming {@code requires static java.security.jgss;} is added to java.sql module-info.java apps that do not use gssCredential will not require java.security.jgss in the module-path. if the app wants to use gssCredential it will have to include {@code requires java.security.jgss;} in its module-info.java. I see no reason not to add gssCredential because of any dependency.
>> 
>> Did you build a JDK without java.security.jgss using jlink [1]?
>> 
>> [1] https://docs.oracle.com/en/java/javase/11/tools/jlink.html
>> 
>> Cheers
>> Philippe
> 



More information about the jdbc-spec-discuss mailing list