[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [really patch] Re: HashMap putAll/putAllInternal bug
From: |
Stephen Crawley |
Subject: |
Re: [really patch] Re: HashMap putAll/putAllInternal bug |
Date: |
Mon, 13 Oct 2003 10:27:40 +1000 |
"David Holmes" <address@hidden> wrote:
> If you can't provide a valid implementation for any concrete method
> that you are supposed to implement, then it seems quite unreasonable
> of you to expect any inherited methods to work for you. I think it
> quite reasonable for a method like putAll to expect to be able to use
> any of the non-optional methods of Map/Set/Iterator to do its job -
> even if it doesn't document exactly which methods it uses.
The corollary is that if you can't provide a valid (and sufficiently
efficient for your purposes) implementation for an abstract method in
AbstractMap, then you should NOT be extending AbstractMap. Rather you
should be implementing the Map interface from scratch.
-- Steve
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Stuart Ballard, 2003/10/08
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Brian Jones, 2003/10/08
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Bryce McKinlay, 2003/10/09
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Sascha Brawer, 2003/10/09
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Bryce McKinlay, 2003/10/09
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Stuart Ballard, 2003/10/10
- RE: [really patch] Re: HashMap putAll/putAllInternal bug, David Holmes, 2003/10/12
- Re: [really patch] Re: HashMap putAll/putAllInternal bug,
Stephen Crawley <=
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Stuart Ballard, 2003/10/13
- RE: [really patch] Re: HashMap putAll/putAllInternal bug, David Holmes, 2003/10/13
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Eric Blake, 2003/10/16
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Stuart Ballard, 2003/10/22
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Stuart Ballard, 2003/10/27
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Stuart Ballard, 2003/10/13
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Eric Blake, 2003/10/16
- Re: [really patch] Re: HashMap putAll/putAllInternal bug, Bryce McKinlay, 2003/10/13