Generification conflict: Properties vs. javax.naming.spi.ObjectFactory

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 5.0
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • b59
    • generic
    • solaris_8

      There is a conflict between the generification of java.util.Properties
      and javax.naming.spi.ObjectFactory. Properties is a Hashtable<Object,Object>
      but ObjectFactory.getObjectInstance takes a Hashtable<String,?> as its parameter. Thus, an existing client that passes a Properies will no longer
      compile.

      Perhaps Properties should implement Hashtable<String,String>

      Perhaps ObjectFactory.getObjectInstance should take a Hashtable<? super String,?>

            Assignee:
            Mark Reinhold
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: