https://bugs.eclipse.org/bugs/show_bug.cgi?id=73931
diff --git a/deprecated/plugins/org.eclipse.uml2/src/org/eclipse/uml2/internal/operation/ProfileOperations.java b/deprecated/plugins/org.eclipse.uml2/src/org/eclipse/uml2/internal/operation/ProfileOperations.java
index 51b03db..7a06e74 100644
--- a/deprecated/plugins/org.eclipse.uml2/src/org/eclipse/uml2/internal/operation/ProfileOperations.java
+++ b/deprecated/plugins/org.eclipse.uml2/src/org/eclipse/uml2/internal/operation/ProfileOperations.java
@@ -8,7 +8,7 @@
  * Contributors:
  *   IBM - Initial API and implementation
  *
- * $Id: ProfileOperations.java,v 1.8.2.6 2004/09/15 15:43:01 khussey Exp $
+ * $Id: ProfileOperations.java,v 1.8.2.7 2004/09/15 16:46:31 khussey Exp $
  */
 package org.eclipse.uml2.internal.operation;
 
@@ -617,7 +617,8 @@
 			TreeIterator eAllContents = new AbstractTreeIterator(package_, true) {
 
 				public Iterator getChildren(Object parent) {
-					return ((EObject) parent).eContents().iterator();
+					return new ArrayList(((EObject) parent).eContents())
+						.iterator();
 				}
 			};