"adrian(a)jboss.org" wrote : No. Just make MetaDataVisitorNode implement
Cloneable.
How does that help me with cloning the items?
Since the item::clone() method comes from Object, where it is protected.
e.g.
| public AbstractCollectionMetaData clone()
| {
| AbstractCollectionMetaData clone = (AbstractCollectionMetaData)super.clone();
| clone.collection = getDefaultInstance();
| for (MetaDataVisitorNode item : collection)
| clone.collection.add((MetaDataVisitorNode)item.clone());
| return clone;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142345#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...