Beispiel #1
0
 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;
 }
Beispiel #2
0
 @Override
 public void dataWrapStruct(Object object) {
   this.javaObject = (JavaObject) object;
   this.object = javaObject.getValue();
 }