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

jndiprovider.properties contains properties pointing to non-existing classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11, 23
    • core-libs
    • None

      The default values of the JNDI provider environment properties listed in jndiprovider.properties file contain non-existing classes.
      The following classes are not shipped with JDK and can cause com.sun.naming.internal.ResourceManager.getFactories fail to load the classes mentioned in the properties file:
          com.sun.jndi.ldap.ctl.ResponseControlFactory
          com.sun.jndi.ldap.obj.AttrsToCorba
          com.sun.jndi.ldap.obj.MarshalledToObject
          com.sun.jndi.ldap.obj.RemoteToAttrs
          com.sun.jndi.ldap.obj.CorbaToAttrs

      The use cases of java.naming.factory.object, java.naming.factory.control and java.naming.factory.state environment properties needs to be investigated to confirm that the above class references can be removed from jndiprovider.properties file, or maybe the whole properties file can be removed.

      The properties file path in JDK repository:
      src/java.naming/share/classes/com/sun/jndi/ldap/jndiprovider.properties

            aefimov Aleksej Efimov
            aefimov Aleksej Efimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: