cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: svn commit: rev 55957 - in cocoon/branches/BRANCH_2_1_X: . src/java/org/apache/cocoon/components/flow/javascript/fom
Date Fri, 29 Oct 2004 10:31:43 GMT
sylvain@apache.org wrote:
> 
> @@ -687,6 +703,7 @@
>                      if (fun == Scriptable.NOT_FOUND) {
>                          throw new ResourceNotFoundException("Function \"javascript:"
+ funName + "()\" not found");
>                      }
> +                    thrScope.setLock(true);
>                      ScriptRuntime.call(context, fun, thrScope, funArgs, thrScope);
>                  } catch (JavaScriptException ex) {
>                      EvaluatorException ee = Context.reportRuntimeError(
> @@ -710,6 +727,7 @@
>                      throw new CascadingRuntimeException(ee.getMessage(), ee);
>                  }
>              } finally {
> +                thrScope.setLock(false);
>                  setSessionScope(thrScope);
>                  if (cocoon != null) {
>                      cocoon.popCallContext();

Is there a reason why you need to "un-lock" it?

Vadim

Mime
View raw message