public Object getObject() { // FIXME: Added this because marshal_spec seemed to reconstitute objects without calling // dataWrapStruct // this resulted in object being null after unmarshalling... if (object == null) { if (javaObject == null) { throw getRuntime().newRuntimeError("Java wrapper with no contents: " + this); } else { object = javaObject.getValue(); } } return object; }
@Override public void dataWrapStruct(Object object) { this.javaObject = (JavaObject) object; this.object = javaObject.getValue(); }