You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Colbert Philippe <co...@rogers.com> on 2006/09/21 05:04:12 UTC

Does JMX downcast in a Collection?

If an application has a parent class called Shape with subclasses Square and 
Circle.

Furthermore, in another class has an attribute List<Shape> with items in the 
list being either Square or Circle.   In the commons-modeler XML file we 
declare the attribute with type="java.util.List".   When the elements of the 
list are visualized, are each going to be downcasted to their real type 
(either Square or Circle).

In other words, does JMX commons-modeler downcast from Shape to either Squre 
or Circle? 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org