Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A7AF10D03 for ; Fri, 24 Oct 2014 09:00:51 +0000 (UTC) Received: (qmail 45514 invoked by uid 500); 24 Oct 2014 09:00:49 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 45482 invoked by uid 500); 24 Oct 2014 09:00:49 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 45473 invoked by uid 99); 24 Oct 2014 09:00:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2014 09:00:49 +0000 Date: Fri, 24 Oct 2014 09:00:49 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-6406) Add support to ObjectHelper.getException() for Java 1.7 Throwable.getSuppressed() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)