commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colbert Philippe" <colbert.phili...@rogers.com>
Subject Does JMX downcast in a Collection<SuperClass>?
Date Thu, 21 Sep 2006 03:04:12 GMT
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


Mime
View raw message