From 6bb8d5458738144e327aeb87d520473bd821a2db Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 21 Jun 2002 15:31:02 +0000 Subject: [PATCH] Moved scriptingEngine.updatePrototypes() invocation to the beginning of the loop in the run() method. --- src/helma/framework/core/RequestEvaluator.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 3911f210..3baf4a5e 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -80,6 +80,7 @@ public final class RequestEvaluator implements Runnable { // long startCheck = System.currentTimeMillis (); app.typemgr.checkPrototypes (); + scriptingEngine.updatePrototypes (); // System.err.println ("Type check overhead: "+(System.currentTimeMillis ()-startCheck)+" millis"); // object refs to ressolve request path @@ -93,8 +94,6 @@ public final class RequestEvaluator implements Runnable { boolean done = false; String error = null; - scriptingEngine.updatePrototypes (); - while (!done) { currentElement = null; @@ -327,8 +326,6 @@ public final class RequestEvaluator implements Runnable { globals.put ("res", res); globals.put ("app", app); - scriptingEngine.updatePrototypes (); - scriptingEngine.enterContext (globals); currentElement = root; @@ -381,8 +378,6 @@ public final class RequestEvaluator implements Runnable { } } - scriptingEngine.updatePrototypes (); - // avoid going into transaction if called function doesn't exist boolean functionexists = true; functionexists = scriptingEngine.hasFunction (thisObject, method);