I, really, don't know.. i'm trying to upgrade Web-CAT's frameworks to
latest versions, but it seem to be too hard.

Anyway, any suggestion on how to rewrite that piece of code?


2014/1/17 Chuck Hill <[email protected]>:
> Why is it doing that?  That seems… like not a good idea.
>
> Chuck
>
>
> On 1/17/2014, 5:06 AM, "Filippo Laurìa" wrote:
>
> Hi everyone,
> i've this piece of code:
>
> // snipped start
> static void waitForNextJob(QueueDescriptor descriptor) {
>     TokenDispenser dispenser = dispenserFor(descriptor);
>     int lockCount = 0;
>     try {
>         if (descriptor.editingContext() instanceof ERXEC) {
>             ERXEC ec = (ERXEC) descriptor.editingContext();
>             while (ec.lockCount() > 0) {
>                 ec.unlock();
>                 lockCount++;
>             }
>         }
>         dispenser.getJobToken();
>     } finally {
>         while (lockCount > 0) {
>             descriptor.editingContext().lock();
>             lockCount--;
>         }
>     }
> }
> // snippet end
>
> In it, as you can see, is used method lockCount() from class ERXEC
> (project wonder 2.0?).
> I'm trying to build using project wonder 6.0.
> Considering that the method lockCount() is missing in project wonder
> 6.0
> (http://jenkins.wocommunity.org/job/Wonder/javadoc/er/extensions/eof/ERXEC.html),
> how can i obtain the same behavior?
>
> Thank you.
>
> --
> Filìppo Laurìa
>
> _______________________________________________
> 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/chill%40global-village.net
>
> This email sent to [email protected]



-- 
Filìppo Laurìa - http://www.facebook.com/filippo.lauria

 _______________________________________________
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