parent and prototype fields are made privatenot to allow to mess with them from subclasses. Althoygh setter and getter can be used still to do that, at least some sanity checks can be added there.

This commit is contained in:
igor%mir2.org 2003-10-30 16:40:43 +00:00
parent 2851be6c6c
commit f78d4de11b

View File

@ -1825,12 +1825,12 @@ public abstract class ScriptableObject implements Scriptable, Serializable,
/**
* The prototype of this object.
*/
protected Scriptable prototype;
private Scriptable prototype;
/**
* The parent scope of this object.
*/
protected Scriptable parent;
private Scriptable parent;
private static final Object HAS_STATIC_ACCESSORS = Void.TYPE;
private static final Slot REMOVED = new Slot();