Re: java.util.Properties extending from HashMap<Object, Object> instead of HashMap<String, String>
- From: Owen Jacobson <angrybaldguy@xxxxxxxxx>
- Date: Fri, 4 Apr 2008 10:16:47 -0700 (PDT)
On Apr 4, 12:14 pm, Rakesh <rakesh.use...@xxxxxxxxx> wrote:
I was curious if there is a reason why java.util.Properties extends
from HashMap<Object, Object> instead of HashMap<String, String>
(seems more intuitive to me).
A variation of that would be -
how do we get about converting Properties to Map<String, String> .
Backwards compatability. In Java 1.4 and earlier,
Properties.get(Object) returned Object; changing that signature for
1.5 would break any code that used that method without an immediate
cast to String.
-o
.
- Follow-Ups:
- References:
- Prev by Date: Re: pass by reference
- Next by Date: Re: java.util.Properties extending from HashMap<Object, Object> instead of HashMap<String, String>
- Previous by thread: java.util.Properties extending from HashMap<Object, Object> instead of HashMap<String, String>
- Next by thread: Re: java.util.Properties extending from HashMap<Object, Object> instead of HashMap<String, String>
- Index(es):
Relevant Pages
|