You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2014/08/16 10:16:21 UTC
git commit: Fixed issue - java.lang.NoClassDefFoundError: Could not
initialize class org.apache.camel.util.ObjectHelper
Repository: camel
Updated Branches:
refs/heads/master bd82ae742 -> 008ad19a0
Fixed issue - java.lang.NoClassDefFoundError: Could not initialize class org.apache.camel.util.ObjectHelper
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/008ad19a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/008ad19a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/008ad19a
Branch: refs/heads/master
Commit: 008ad19a0804de51c61b271230600b1d6d7f3219
Parents: bd82ae7
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Aug 16 10:16:10 2014 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Aug 16 10:16:10 2014 +0200
----------------------------------------------------------------------
.../main/java/org/apache/camel/util/ObjectHelper.java | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/008ad19a/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java b/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
index e769abb..60fb9fa 100644
--- a/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
@@ -43,8 +43,6 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Properties;
import java.util.Scanner;
-import java.util.Set;
-import java.util.TreeSet;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@@ -60,7 +58,6 @@ import org.apache.camel.WrappedFile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
/**
* A number of useful helper methods for working with Objects
*
@@ -69,10 +66,12 @@ import org.slf4j.LoggerFactory;
public final class ObjectHelper {
private static final Logger LOG = LoggerFactory.getLogger(ObjectHelper.class);
private static final String DEFAULT_DELIMITER = ",";
- private static final Set<Class<?>> PRIMITIVE_ARRAY_TYPES
- = new TreeSet<Class<?>>(Arrays.asList(byte[].class, short[].class, int[].class, long[].class,
- float[].class, double[].class, char[].class, boolean[].class));
-
+
+ // must be as-is otherwise class cannot be loaded
+ @SuppressWarnings("unchecked")
+ private static final List<?> PRIMITIVE_ARRAY_TYPES = Arrays.asList(byte[].class, short[].class, int[].class, long[].class,
+ float[].class, double[].class, char[].class, boolean[].class);
+
/**
* Utility classes should not have a public constructor.
*/