Author: alessio.soldano(a)jboss.com
Date: 2013-01-29 00:49:14 -0500 (Tue, 29 Jan 2013)
New Revision: 469
Modified:
webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/treeElement/WiseTreeElementBuilder.java
Log:
Clone reference elements for lazy loading before storing them into the map to avoid them
being modified before lazy load element resolution
Modified:
webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/treeElement/WiseTreeElementBuilder.java
===================================================================
---
webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/treeElement/WiseTreeElementBuilder.java 2013-01-28
23:50:17 UTC (rev 468)
+++
webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/treeElement/WiseTreeElementBuilder.java 2013-01-29
05:49:14 UTC (rev 469)
@@ -164,7 +164,7 @@
complex.addChild(element.getId(), element);
}
stack.remove(cl);
- typeMap.put(cl, complex);
+ typeMap.put(cl, complex.clone());
return complex;
}
}
Show replies by date