Issue 2509: Can an any with a tk_null or tk_void TypeCode be encoded with CDR? (orb_revision) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: The spec is silent about whether an any with a TypeCode of tk_null or tk_void can be marshalled and unmarshalled with CDR. Resolution: closed in interop/2000-01-01 Revised Text: Actions taken: March 3, 1999: received issue March 7, 2002: moved to Core RTF March 22, 2002: closed issue Discussion: End of Annotations:===== >Sender: jon@floorboard.com Date: Wed, 03 Mar 1999 13:10:59 -0800 From: Jonathan Biggar X-Accept-Language: en To: interop@omg.org, issues@omg.org Subject: Can an any with a tk_null or tk_void TypeCode be encoded with CDR? The spec is silent about whether an any with a TypeCode of tk_null or tk_void can be marshalled and unmarshalled with CDR. -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org Cc: issues@emerald.omg.org, interop@emerald.omg.org Date: Thu, 04 Mar 1999 14:21:25 -0500 From: Tom Rutt Reply-To: terutt@lucent.com Organization: Lucent Technologies - Bell Labs To: Juergen Boldt Original-CC: issues@emerald.omg.org, interop@emerald.omg.org Subject: Re: issue 2509 -- Interop RTF Issue References: <3.0.32.19990303163118.00aed7e8@emerald.omg.org> X-MIME-Autoconverted: from quoted-printable to 8bit by emerald.omg.org id PAA25685 Juergen Boldt wrote: > > This is issue # 2509 > > Can an any with a tk_null or tk_void TypeCode be encoded with CDR? > > The spec is silent about whether an any with a TypeCode of tk_null > or > tk_void can be marshalled and unmarshalled with CDR. > This is not an issue: as Table 15-2 in PTC/98-12-04 has the following two entries for marshalling null and void : TCKind Integer ValueType Parameters tk_null 0 empty ------------------------- Tom Rutt Tel: +1 732 949 7862 Lucent Technologies - Bell Laboratories Fax: +1 732 949 1196 Rm 4L-336, 101 Crawford Corner Rd eail: terutt@lucent.com Holmdel NJ, 07733 ---------------------------------------------- Sender: jon@floorboard.com Date: Thu, 04 Mar 1999 13:40:23 -0800 From: Jonathan Biggar X-Accept-Language: en To: terutt@lucent.com CC: Juergen Boldt , issues@emerald.omg.org, interop@emerald.omg.org Subject: Re: issue 2509 -- Interop RTF Issue References: <3.0.32.19990303163118.00aed7e8@emerald.omg.org> <36DEDD34.7FEB12C2@lucent.com> Tom Rutt wrote: > > Juergen Boldt wrote: > > > > This is issue # 2509 > > > > Can an any with a tk_null or tk_void TypeCode be encoded with CDR? > > > > The spec is silent about whether an any with a TypeCode of tk_null > or > > tk_void can be marshalled and unmarshalled with CDR. > > > > This is not an issue: as Table 15-2 in PTC/98-12-04 has the > following > two entries for marshalling null and void : > > TCKind Integer ValueType Parameters > tk_null 0 empty - none - > tk_void 1 empty - none - Tom, this describes how to marshal the TypeCode, but not how to marshal an any that has that TypeCode. There is no explicit statement in CDR that an any with a TypeCode of tk_null or tk_void can be marshalled, and if so how to marshal the "value" part of the any. If this is allowed, the obvious marshalling is that the "value" part just isn't there. -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org To: Bob Kukura cc: "Rutt, T E (Tom)" , "'interop@omg.org'" Subject: Re: announcement of interop 2000 rtf vote 1 In-Reply-To: Your message of "Fri, 10 Dec 1999 09:24:45 PST." <3851375D.C989B836@iona.com> Date: Fri, 10 Dec 1999 12:17:43 PST From: Bill Janssen Message-Id: <99Dec10.121753pst."3586"@watson.parc.xerox.com> Content-Type: text X-UIDL: -g3e9ipCe9]*_d96NFe9 > 2509 - Yes. These are legal Any's and there is no reason not to allow > them to be marshaled. I don't oppose clarifying that they can be > marshaled, or how they are marshaled, but don't think this is necessary. Bob, how can they be legal any's, when there's no such thing as a null value? Doesn't any any value have to be a valid CORBA value? Bill Date: Fri, 10 Dec 1999 15:24:20 -0500 From: Bob Kukura Organization: IONA Technologies X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Bill Janssen CC: "Rutt, T E (Tom)" , "'interop@omg.org'" Subject: Re: announcement of interop 2000 rtf vote 1 References: <99Dec10.121753pst."3586"@watson.parc.xerox.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-UIDL: ,6~!!k]C!!eFPe9)=-e9 My understanding has been that when the type is tk_null or tk_void, there is no value, just the type. The any would be marshaled as just the typecode representing the type. Its kind of like a union where the discriminator doesn't match any member. Unfortunately, I don't have time right now to dig through the specs to back up my assertions, so I may be making a fool of myself. -Bob Bill Janssen wrote: > > > 2509 - Yes. These are legal Any's and there is no reason not to > allow > > them to be marshaled. I don't oppose clarifying that they can be > > marshaled, or how they are marshaled, but don't think this is > necessary. > > Bob, how can they be legal any's, when there's no such thing as a > null > value? Doesn't any any value have to be a valid CORBA value? > > Bill From: Paul Kyzivat To: "'Bill Janssen'" , Bob Kukura > Cc: "Rutt, T E (Tom)" , "'interop@omg.org'" Subject: RE: announcement of interop 2000 rtf vote 1 Date: Fri, 10 Dec 1999 17:13:08 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" X-UIDL: ]`c!!~b3!!>kfd9g6@!! > From: Bill Janssen [mailto:janssen@parc.xerox.com] > Bob, how can they be legal any's, when there's no such thing as a null > value? Doesn't any any value have to be a valid CORBA value? How about a default constructed Any value passed as an inout argument? Sender: jbiggar@floorboard.com Message-ID: <38519095.609169D5@floorboard.com> Date: Fri, 10 Dec 1999 15:45:25 -0800 From: Jonathan Biggar X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Paul Kyzivat CC: "'Bill Janssen'" , Bob Kukura , "Rutt, T E (Tom)" , "'interop@omg.org'" Subject: Re: announcement of interop 2000 rtf vote 1 References: <9B164B713EE9D211B6DC0090273CEEA914023E@bos1.noblenet.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-UIDL: m$Wd9BN~!!STAe9A!$e9 Paul Kyzivat wrote: > > > From: Bill Janssen [mailto:janssen@parc.xerox.com] > > > Bob, how can they be legal any's, when there's no such thing as a > null > > value? Doesn't any any value have to be a valid CORBA value? > > How about a default constructed Any value passed as an inout > argument? Exactly. I find the ability to pass an Any with tk_null as a useful default indicator of no value. -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org