git-svn-id: svn://10.0.0.236/trunk@142327 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org
2003-05-12 16:54:41 +00:00
parent 91bbf4fae2
commit f4e1875ca9

View File

@@ -311,6 +311,10 @@ public abstract class ScriptableObject implements Scriptable, Serializable,
// Check slot was not deleted/replaced before synchronization
if (i >= 0 && slots[i] == slot) {
slots[i] = replacement;
// It is important to make sure that lastAccess != slot
// to prevent accessing the old slot via lastAccess and
// then invoking setter one more time
lastAccess = replacement;
}
}
}