commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colbert Philippe" <>
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 

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:
For additional commands, e-mail:

View raw message