-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
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,?>
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,?>
- relates to
-
JDK-5064052 unnecessary bridge methods interfere with some generics retrofitting
- Resolved
-
JDK-6368455 (props) Properties should extend Hashtable<String,String> not Hashtable<Object,Object>
- Closed
-
JDK-6613858 ObjectName Constructor declaration breaks Properties() argument in 1.6
- Closed