Re: [picocontainer-dev] Bug or feature?
Konstantin Priblouda <kpriblouda-/[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
--- Paul Hammant <[email protected]> wrote: > > On Nov 25, 2007, at 6:03 AM, Konstantin Priblouda > wrote: > > > > > > container.addComponent(Map.class,MyStartable.class); > > > container.addComponent("glumBlam",HashMap.class); > > > assertSame(container.getComponent("glumBlam"), > > > container.getComponent(Map.class)); > > The real bug here (your first case) is that > MyStartable is not a map > at all. > > You should not be able to register it. > Or more specifically, if the key is a type, the impl > should be > isAssignableFrom in respect of the key. I just double ( triple ;) ) checked both cases and found that they are "no case". Sorry for bothering... regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ ____________________________________________________________________________________ Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email