Okay, I'll bite.  What is "contravariance?"

Mark

-----Original Message-----
From: Dan Jacobs [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 7:17 AM

Based on the oft misunderstood property of contravariance, I *do* 
conclude that form-beans should not be subtyped from Java Beans, for the 
reason that subtypes are never supposed to have fewer behaviors than 
their supertypes.  It's customary in good object-oriented design to use 
delegation rather than subclassing to use only a selected subset of 
behaviors from another kind of thing.  If Struts is saying that a 
form-bean should never act like a bean in such-and-such manners, then it 
follows that form-beans should not be beans.  This *is* an architecture 
issue.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to