You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2016/05/02 15:25:01 UTC

camel git commit: CAMEL-9934: Missing raw type in CDI parameterized event endpoint URI

Repository: camel
Updated Branches:
  refs/heads/master a1393714e -> e8e32b68c


CAMEL-9934: Missing raw type in CDI parameterized event endpoint URI


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e8e32b68
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e8e32b68
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e8e32b68

Branch: refs/heads/master
Commit: e8e32b68c9a56560b0089413212ddf24c520afd6
Parents: a139371
Author: Antonin Stefanutti <an...@stefanutti.fr>
Authored: Mon May 2 15:24:49 2016 +0200
Committer: Antonin Stefanutti <an...@stefanutti.fr>
Committed: Mon May 2 15:24:49 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/cdi/CdiCamelFactory.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e8e32b68/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelFactory.java
----------------------------------------------------------------------
diff --git a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelFactory.java b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelFactory.java
index 8196d45..8644400 100755
--- a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelFactory.java
+++ b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelFactory.java
@@ -216,9 +216,10 @@ final class CdiCamelFactory {
             return Class.class.cast(type).getName();
         }
         if (type instanceof ParameterizedType) {
-            return Stream.of(((ParameterizedType) type).getActualTypeArguments())
+            ParameterizedType pt = (ParameterizedType) type;
+            return Stream.of(pt.getActualTypeArguments())
                 .map(CdiCamelFactory::authorityFromType)
-                .collect(joining("%2C", "%3C", "%3E"));
+                .collect(joining("%2C", authorityFromType(pt.getRawType()) + "%3C", "%3E"));
         }
         if (type instanceof GenericArrayType) {
             GenericArrayType arrayType = (GenericArrayType) type;