Issue 12539: Deprecated usage of IDL in the DDS spec (data-distribution-rtf) Source: OCI (Mr. Adam Mitz, mitza(at)ociweb.com) Nature: Uncategorized Issue Severity: Summary: The CORBA specification (08-01-04) in section 7.11.6 deprecates the use of anonymous types, for example the type of the struct field "seq" below: struct Foo { sequence<octet> seq; }; The DDS DCPS IDL uses these in multiple places (the first is DDS::UserDataQosPolicy). These should be replaced with non-deprecated usage such as: typedef sequence<octet> OctetSeq; struct Foo { OctetSeq seq; }; This will also increase internal consistency of the DDS spec, since it already uses a DDS::StringSeq typedef in the PartitionQosPolicy struct. Furthermore, if the element type of the sequence is a Basic Type or a String Type, the CORBA module already provides these typedefs, so it would be preferable to use them. The example above becomes: struct Foo { CORBA::OctetSeq seq; }; Resolution: Revised Text: Actions taken: June 20, 2008: received issue Discussion: End of Annotations:===== te: Fri, 20 Jun 2008 10:40:32 -0500 From: Adam Mitz User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) To: issues@omg.org Subject: (data-distribution-rtf) Deprecated usage of IDL in the DDS spec X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ociweb.com X-Spam-Status: No, hits=-2.6 tagged_above=-3.0 required=2.0 tests=AWL, BAYES_00 X-Spam-Level: The CORBA specification (08-01-04) in section 7.11.6 deprecates the use of anonymous types, for example the type of the struct field "seq" below: struct Foo { sequence seq; }; The DDS DCPS IDL uses these in multiple places (the first is DDS::UserDataQosPolicy). These should be replaced with non-deprecated usage such as: typedef sequence OctetSeq; struct Foo { OctetSeq seq; }; This will also increase internal consistency of the DDS spec, since it already uses a DDS::StringSeq typedef in the PartitionQosPolicy struct. Furthermore, if the element type of the sequence is a Basic Type or a String Type, the CORBA module already provides these typedefs, so it would be preferable to use them. The example above becomes: struct Foo { CORBA::OctetSeq seq; }; Thanks, Adam Mitz Software Engineer Object Computing, Inc.