Re-add a simple getDefaultValue implementation to prevent runtime errors.

This commit is contained in:
hns 2004-03-29 14:53:23 +00:00
parent 4239bb201b
commit 06685adbec

View file

@ -160,6 +160,17 @@ public class HopObject extends ScriptableObject implements Wrapper {
return className;
}
/**
* Return a primitive representation for this object.
* FIXME: We always return a string representation.
*
* @param hint the type hint
* @return the default value for the object
*/
public Object getDefaultValue(Class hint) {
return toString();
}
/**
*
*