aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Clemons2012-11-29 10:57:47 (EST)
committerGlyn Normington2012-11-29 10:57:47 (EST)
commita46ebe859651e17840763bde364e452d61682731 (patch)
treea0fdb271b2371e4e374bc7c2e042edaa824f6e95
parentb998e148ba4581429852c88380d277c72e6a39d9 (diff)
downloadorg.eclipse.gemini.blueprint-a46ebe859651e17840763bde364e452d61682731.zip
org.eclipse.gemini.blueprint-a46ebe859651e17840763bde364e452d61682731.tar.gz
org.eclipse.gemini.blueprint-a46ebe859651e17840763bde364e452d61682731.tar.bz2
374712: avoid ClassCastException
-rw-r--r--core/src/main/java/org/eclipse/gemini/blueprint/service/importer/support/internal/collection/DynamicCollection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/eclipse/gemini/blueprint/service/importer/support/internal/collection/DynamicCollection.java b/core/src/main/java/org/eclipse/gemini/blueprint/service/importer/support/internal/collection/DynamicCollection.java
index a3b8f94..13fc6ae 100644
--- a/core/src/main/java/org/eclipse/gemini/blueprint/service/importer/support/internal/collection/DynamicCollection.java
+++ b/core/src/main/java/org/eclipse/gemini/blueprint/service/importer/support/internal/collection/DynamicCollection.java
@@ -380,7 +380,7 @@ public class DynamicCollection<E> extends AbstractCollection<E> {
@SuppressWarnings("unchecked")
public <T> T[] toArray(T[] a) {
synchronized (storage) {
- return storage.toArray((T[]) new Object[storage.size()]);
+ return storage.toArray(a);
}
}