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

Willem Jiang commented on CAMEL-6406:
-------------------------------------

I just wrote a simple test , the ex.getSuppressed() just return a empty array, 
we can not use it in the ObjectHelper. 
{code}
        Exception cause0 = new IllegalArgumentException("test0");
        Exception cause1 = new RuntimeCamelException("test1", cause0);
        Throwable ex = new Throwable("Test message", cause1);
        System.out.println(cause1.getSuppressed().length);
        for (Throwable t : ex.getSuppressed()) {
            System.out.println(t);
        }
{code}

> Add support to ObjectHelper.getException() for Java 1.7 
> Throwable.getSuppressed()
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-6406
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6406
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.11.0, 2.14.0
>            Reporter: Aaron Whiteside
>            Assignee: Willem Jiang
>
> Add support to ObjectHelper.getException() for Java 1.7 
> Throwable.getSuppressed()
> Now that exceptions can be suppressed in Java 1.7 Camel should be able to 
> detect when running in a 1.7 JVM and use the additional suppressed Throwables 
> when searching for specific exception types. 



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

Reply via email to