Esempio n. 1
0
 /*      */ public void insert_Value(Serializable paramSerializable) /*      */ {
   /* 1143 */ this.object = paramSerializable;
   /*      */ TypeCode localTypeCode;
   /* 1147 */ if (paramSerializable == null) {
     /* 1148 */ localTypeCode = this.orb.get_primitive_tc(TCKind.tk_value);
     /*      */ }
   /*      */ else
   /*      */ {
     /* 1159 */ localTypeCode =
         createTypeCodeForClass(paramSerializable.getClass(), (ORB) ORB.init());
     /*      */ }
   /*      */
   /* 1162 */ this.typeCode = TypeCodeImpl.convertToNative(this.orb, localTypeCode);
   /* 1163 */ this.isInitialized = true;
   /*      */ }
Esempio n. 2
0
  public void insert_Value(Serializable v) {
    // debug.log ("insert_Value");
    object = v;

    TypeCode tc;

    if (v == null) {
      tc = orb.get_primitive_tc(TCKind.tk_value);
    } else {
      // See note in getPrimitiveTypeCodeForClass.  We
      // have to use the latest type code fixes in this
      // case since there is no way to know what ORB will
      // actually send this Any.  In RMI-IIOP, when using
      // Util.writeAny, we can do the versioning correctly,
      // and use the insert_Value(Serializable, TypeCode)
      // method.
      //
      // The ORB singleton uses the latest version.
      tc = createTypeCodeForClass(v.getClass(), (ORB) ORB.init());
    }

    typeCode = TypeCodeImpl.convertToNative(orb, tc);
    isInitialized = true;
  }