Fix HopObject cach property getter to do a Context.toObject().

Remove bogus getDefaultValue() implementation.
This commit is contained in:
hns 2004-02-27 13:19:17 +00:00
parent 75b2dea067
commit e6da507d85

View file

@ -219,7 +219,12 @@ public class HopObject extends ScriptableObject implements Wrapper {
checkNode();
return node.getCacheNode();
INode cache = node.getCacheNode();
if (cache != null) {
return Context.toObject(node.getCacheNode(), core.global);
}
return null;
}
/**
@ -930,20 +935,8 @@ public class HopObject extends ScriptableObject implements Wrapper {
return NOT_FOUND;
}
/**
*
*
* @param hint ...
*
* @return ...
*/
public Object getDefaultValue(Class hint) {
return (className != null) ? ("[HopObject " + className + "]") : "[HopObject]";
}
/**
*
* Return a string representation of this object
*
* @return ...
*/