Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 277A410EAA for ; Mon, 19 Aug 2013 16:06:59 +0000 (UTC) Received: (qmail 21991 invoked by uid 500); 19 Aug 2013 16:06:58 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 21291 invoked by uid 500); 19 Aug 2013 16:06:54 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 21284 invoked by uid 99); 19 Aug 2013 16:06:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Aug 2013 16:06:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Aug 2013 16:06:51 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 490302388900; Mon, 19 Aug 2013 16:06:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1515482 - /commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java Date: Mon, 19 Aug 2013 16:06:30 -0000 To: commits@commons.apache.org From: mbenson@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130819160630.490302388900@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mbenson Date: Mon Aug 19 16:06:29 2013 New Revision: 1515482 URL: http://svn.apache.org/r1515482 Log: matchers can fail at run time on empty arg arrays Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java?rev=1515482&r1=1515481&r2=1515482&view=diff ============================================================================== --- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java (original) +++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java Mon Aug 19 16:06:29 2013 @@ -49,7 +49,7 @@ public class RecordedInvocation public RecordedInvocation(Method invokedMethod, Object[] arguments) { this.invokedMethod = invokedMethod; - this.arguments = ArrayUtils.clone(arguments); + this.arguments = ArrayUtils.nullToEmpty(ArrayUtils.clone(arguments)); } //----------------------------------------------------------------------------------------------------------------------