Hi,
I am reading MemberList class and it done some strange stuff like:
public boolean add(Object member) {
if (member instanceof ProjectMemberModel) {
// Always put the model at the top
model = (AbstractProjectMember) member;
return true;
}
..
}
So it seem that MemberList subclass List. (see subclassing vs. subtyping)
Beceause assertion like
aMemberList.add(aProjectMemberModel1)
aMemberList.add(aProjectMemberModel2)
aMemberList.size() = 1
But in a List 2 is expected
Any idea?
Thanks
Math
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet
!
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos
expériences.
http://fr.answers.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]