On 16 Apr 2016, at 2:25 pm, Paul Hoadley <[email protected]> wrote:

>>>>> 1. With the new method signature for arrayMinusArray(), WOUnit’s 
>>>>> MockEditingContext can’t even find that method:
>>>>> 
>>>>> java.lang.NoSuchMethodError: 
>>>>> er.extensions.foundation.ERXArrayUtilities.arrayMinusArray(Lcom/webobjects/foundation/NSArray;Lcom/webobjects/foundation/NSArray;)Lcom/webobjects/foundation/NSArray;
>>>>> at 
>>>>> com.wounit.rules.MockEditingContext.saveChanges(MockEditingContext.java:310)
>>>>> 
>>>>> 
>>>>> It’s not immediately clear to me why this would be the case, as obviously 
>>>>> NSArray implements Collection, and the new signature is:
>>>>> 
>>>>> public static <T> NSArray<T> arrayMinusArray(Collection<T> array, 
>>>>> Collection<?> minus)
>>> 
>>> Any thoughts on this one? It’s a bit of a show-stopper for WOUnit at the 
>>> moment.
>> 
>> Presumably the intent was that the new signature would be a superset of the 
>> old one—can anyone suggest why WOUnit is complaining?
> 
> I’m having trouble reproducing this outside of WOUnit, so I assume that the 
> issue is that the version I’m using (1.2.3) was compiled against 
> ERExtensions-5.4.3.jar, and it’s literally the method signature baked into 
> the WOUnit JAR that’s causing the NoSuchMethodError here.
> 
> Before I look at other workarounds, Henrique do you have any plans for future 
> WOUnit releases built against newer versions of Wonder?

I bit the Maven bullet, pulled up the WOUnit project and re-built it against 
Wonder 7. This fixes the issue I noted above. If anyone wants a built WOUnit 
JAR (1.3-SNAPSHOT) that works with Wonder 7, let me know.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to