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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 5.0
    • 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,?>

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: