Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 696A411682 for ; Fri, 12 Sep 2014 12:46:34 +0000 (UTC) Received: (qmail 43217 invoked by uid 500); 12 Sep 2014 12:46:34 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 43171 invoked by uid 500); 12 Sep 2014 12:46:34 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 43158 invoked by uid 99); 12 Sep 2014 12:46:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 12:46:34 +0000 Date: Fri, 12 Sep 2014 12:46:34 +0000 (UTC) From: "Jeremy Hughes (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ARIES-1204) StringIndexOutOfBounds for blueprint apps that have constructors with multiple exceptions 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/ARIES-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Hughes resolved ARIES-1204. ---------------------------------- Resolution: Fixed Thanks Simon. Applied patch in revision: svn.apache.org/viewvc?view=revision&revision=1624524 > StringIndexOutOfBounds for blueprint apps that have constructors with multiple exceptions > ----------------------------------------------------------------------------------------- > > Key: ARIES-1204 > URL: https://issues.apache.org/jira/browse/ARIES-1204 > Project: Aries > Issue Type: Bug > Components: Proxy > Reporter: Simon Gormley > Attachments: ProxyMultipleThrows.diff > > > If a blueprint application has classes that have constructors that throw multiple exceptions, such as: > public MyClass(String something) throws IllegalStateException, NumberFormatException { > ... > The ASM Method.getMethod(String) call fails with a StringIndexOutOfBoundsException. > It's not 100% clear from the ASM method Javadoc, but I suspect that it's not expecting any throws declaration in the string passed in. > The problem occurs in ProxySubclassAdapter.visit when it tried to get the constructor, and although there is a Method.getMethod(Constructor) method, this returns a different return value (method name is always ""), which still doesn't work. > So, the rather inelegant solution appears to be to strip off the exceptions from the method string. > Diff will be attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)