From 103f0f446f4f9e9a17320d9c39a840f644ccdd26 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 12 Dec 2005 15:54:07 +0000 Subject: [PATCH] * Make checkForUpdates() synchronized, as concurrent threads can cause a ConcurrentModificationException in the iterator. --- src/helma/framework/core/Prototype.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/framework/core/Prototype.java b/src/helma/framework/core/Prototype.java index a509da12..e44bd3a9 100644 --- a/src/helma/framework/core/Prototype.java +++ b/src/helma/framework/core/Prototype.java @@ -125,7 +125,7 @@ public final class Prototype { * called the code and skins collections of this prototype should be * up-to-date and the lastCodeUpdate be set if there has been any changes. */ - public void checkForUpdates() { + public synchronized void checkForUpdates() { boolean updatedResources = false; // check if any resource the prototype knows about has changed or gone