CORBA 2.4 MAILINGLIST Avatar
  1. OMG Issue

CORBA24 — DynAny & abstract interfaces don't mix!

  • Key: CORBA24-52
  • Legacy Issue Number: 3109
  • Status: closed  
  • Source: Floorboard Software ( Jonathan Biggar)
  • Summary:

    Section 9.2.2 states:

    "The operation raises InconsistentTypeCode if value has a TypeCode with
    a TCKind of tk_Principal, tk_native, or tk_abstract_interface."

    This is totally broken for abstract interfaces. What happens if I do
    this:

    // IDL
    abstract interface I {
    };

    struct S

    { I an_i; }

    ;

    // C++
    S mys;
    CORBA::Any a;

    a <<= s;

    DynamicAny::DynAnyFactory_var daf = ...;
    DynamicAny::DynAny_var da = daf->create_dyn_any(a);
    DynamicAny::DynAny_var component = da->current_component();

    Obviously the value of component must be meaningful, otherwise there is
    no way to examine or construct a value of type S.

  • Reported: CORBA 2.3.1 — Fri, 10 Dec 1999 05:00 GMT
  • Disposition: Resolved — CORBA 2.4
  • Disposition Summary:

    No Data Available

  • Updated: Fri, 6 Mar 2015 20:58 GMT