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));
}
//----------------------------------------------------------------------------------------------------------------------