Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8257860

[macOS]: Remove JNF dependency from libosxkrb5/SCDynamicStoreConfig.m

XMLWordPrintable

        https://bugs.openjdk.java.net/browse/JDK-8257852 discusses removing
        JNF dependencies from the desktop module.

        It would be good to also remiove the dependency from other areas
        In the java.security.jgss module the file libosxkrb5/SCDynamicStoreConfig.m
        makes uses of two categories of support

        1) - JNI utility functions - which can be easily converted to direct JNU
        2) - Type coercion support which is a small framework of classes to
        support conversion between NS collections and JDK collections.
        In particular it is used to convert an NSDictionary into a Hashtable.
        As well as that converter, converters are registered for strings, numbers
         (which can be float or integer) NSArrays (into java.util.List)
        So I think that (eg) if the dictionary itself contains a dictionary, then
        the resulting Java Hashtable will contain a Hashtable.
        The class sun/security/krb5/SCDynamicStoreConfig.convertNativeConfig() defines
        what we are expecting so shows what cases need to be handled
        So a good amount of coding needed here.
        Or perhaps this code can be simplified ?

              weijun Weijun Wang
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: