Exemplo n.º 1
0
 /** A variant of the insertion operation that takes a typecode argument as well. */
 public void insert_Object(org.omg.CORBA.Object o, TypeCode tc) {
   // debug.log ("insert_Object2");
   try {
     if (tc.id().equals("IDL:omg.org/CORBA/Object:1.0") || o._is_a(tc.id())) {
       typeCode = TypeCodeImpl.convertToNative(orb, tc);
       object = o;
     } else {
       throw wrapper.insertObjectIncompatible();
     }
   } catch (Exception ex) {
     throw wrapper.insertObjectFailed(ex);
   }
   isInitialized = true;
 }