Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14057D2DB for ; Fri, 16 Nov 2012 14:50:19 +0000 (UTC) Received: (qmail 37125 invoked by uid 500); 16 Nov 2012 14:50:19 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 35644 invoked by uid 500); 16 Nov 2012 14:50:15 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 33940 invoked by uid 99); 16 Nov 2012 14:50:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 14:50:13 +0000 Date: Fri, 16 Nov 2012 14:50:13 +0000 (UTC) From: "Eric Newton (JIRA)" To: notifications@accumulo.apache.org Message-ID: <1994016537.123960.1353077413942.JavaMail.jiratomcat@arcas> In-Reply-To: <429979286.85441.1352351652433.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (ACCUMULO-845) Handle method.include calls consistently in TraceWrap class. 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/ACCUMULO-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498839#comment-13498839 ] Eric Newton commented on ACCUMULO-845: -------------------------------------- I'm going to fix this in trunk. Do you think this should be back-ported to 1.4? > Handle method.include calls consistently in TraceWrap class. > ------------------------------------------------------------ > > Key: ACCUMULO-845 > URL: https://issues.apache.org/jira/browse/ACCUMULO-845 > Project: Accumulo > Issue Type: Bug > Reporter: David Medinets > Priority: Minor > > One call ignores exceptions and one call handles exceptions. > {noformat} > if (args == null || args.length < 1 || args[0] == null || !(args[0] instanceof TInfo)) { > return method.invoke(instance, args); > } > Span span = Trace.trace((TInfo) args[0], method.getName()); > try { > return method.invoke(instance, args); > } catch (InvocationTargetException ex) { > throw ex.getCause(); > } finally { > span.stop(); > } > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira