[ 
https://issues.apache.org/jira/browse/CAMEL-10349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15529540#comment-15529540
 ] 

ASF GitHub Bot commented on CAMEL-10349:
----------------------------------------

GitHub user Fabryprog opened a pull request:

    https://github.com/apache/camel/pull/1190

    javaScript setHeader conversion fault

    https://issues.apache.org/jira/browse/CAMEL-10349

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Fabryprog/camel CAMEL-10349

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1190.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1190
    
----
commit 58b028c3c0572795e92ec17aaae7da75179e183e
Author: Fabrizio Spataro <[email protected]>
Date:   2016-09-28T13:02:39Z

    CAMEL-10349, insert new test file

----


> javaScript setHeader conversion fault
> -------------------------------------
>
>                 Key: CAMEL-10349
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10349
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.18.0
>            Reporter: Fabrizio Spataro
>            Assignee: Fabrizio Spataro
>
> I may have found a bug derived from 2.18 
> Before 2.18, i can specified an header like: 
> {code}
> <setHeader headerName="myHeader">
>  <javaScript>[ {"firstField": "firstValue", "secondField":"secondValue"} 
> ]</javaScript>
> </setHeader>
> {code}
> I pass it into a method inside my bean. It was cast to 
> ArrayList<HashMap<String,Object>>
> After 2.18 upgrade i had an error 
> 'java.lang.ClassCastException: jdk.nashorn.api.scripting.ScriptObjectMirror 
> cannot be cast to java.util.List'
> Can you help me? Is it a camel bug or an jdk8 issue?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to