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

Custom socket factory is not type checked against javax.net.SocketFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • core-libs
    • None

      According to [1] and [2] a custom provided socket factory has to be a subclass of javax.net.SocketFactory. Actually this requirement is not checked. Now any class will do provided it (or any of its ancestors) has a public static ? getDefault() method. i.e. it's effectively a case of duck typing here which must be fixed.

      -------------------------------------------------
      [1] http://docs.oracle.com/javase/6/docs/technotes/guides/jndi/jndi-ldap.html#pooling
      [2] http://docs.oracle.com/javase/jndi/tutorial/ldap/security/ssl.html

            aefimov Aleksej Efimov
            prappo Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: