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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 9
    • Component/s: 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

            Assignee:
            Aleksej Efimov
            Reporter:
            Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: