fixed bug where no constructor was created for prototypes that where created after the application has started

This commit is contained in:
hns 2001-01-24 14:58:14 +00:00
parent 9310c6a09b
commit 697f3a110c

View file

@ -194,6 +194,19 @@ public class TypeManager implements Runnable {
proto.templates = ntemp;
proto.functions = nfunc;
proto.actions = nact;
// register constructor for evaluators that are already initialized.
if (!"global".equalsIgnoreCase (name)) {
Iterator evals = getRegisteredRequestEvaluators ();
while (evals.hasNext ()) {
try {
RequestEvaluator reval = (RequestEvaluator) evals.next ();
FunctionPrototype fp = (FunctionPrototype) reval.evaluator.getFunctionPrototype();
reval.global.putHiddenProperty (name, new NodeConstructor (name, fp, reval));
} catch (Exception ignore) {}
}
}
}