-
Key: I2JAV11-57
-
Legacy Issue Number: 1385
-
Status: closed
-
Source: Anonymous
-
Summary:
Summary: An IDL Discriminated Union has a discriminator of some type. The
discriminator is permitted to take any value allowed by its type -
nothing in the CORBA spec constrains the discriminator"s value to be
those of the branch labels present in the union or just one catch-all
default. For this reason, CORBA 2.2, section 3.8.2 defines a Discriminated
Union"s value as follows: <example>So, if I were to create a foo and set the discriminator to 74, someone
receiving this instance from me should be able to discern that the
discriminator"s value was set to 74.As it stands, the IDL->Java mapping provides for discovering the value
of the discriminator, so if some other ORB sent me a foo with the
discriminator set to 74 I could discern this, but as far as I can tell
from reading the current IDL->Java mapping (CORBA 2.2 - no relevant
changes appear to be present on orbos/98-03-10) there is no way that I
could set the discriminator"s value to 74. -
Reported: I2JAV 1.0 — Tue, 19 May 1998 04:00 GMT
-
Disposition: Resolved — I2JAV 1.1
-
Disposition Summary:
closed issue
-
Updated: Fri, 6 Mar 2015 21:35 GMT
I2JAV11 — Discriminated Union value issue
- Key: I2JAV11-57
- OMG Task Force: IDL to Java December 2000 RTF