I2JAV 1.1 NO IDEA Avatar
  1. OMG Issue

I2JAV11 — Incomplete union mapping

  • Key: I2JAV11-134
  • Legacy Issue Number: 3911
  • Status: closed  
  • Source: Triodia Technologies Pty Ltd ( Michi Henning)
  • Summary:

    it appears that the Java mapping for unions is incomplete. For example:

    enum E

    { A, B, C }

    ;

    union U switch (E)

    { case A: long l; }

    ;

    Something like this is actually used in the trader specification. For
    a discriminator value of B or C, the union contains no member (but does
    contain the discriminator value, of course). The problem arises because
    the semantics of an operation can differ depending on the discriminator
    value. For example:

    interface foo

    { SomeType op(in U param); }

    ;

    op() can do different things (and indeed, does do different things in the
    trader spec), depending on whether the discriminator value for the union
    is B or C.

    The problem is that the Java mapping does not offer a modifier for
    the discriminator, thereby making it impossible to control the discriminator
    value if more than one discriminator value is possible for the same union
    member.

  • Reported: I2JAV 1.0 — Thu, 28 Sep 2000 04:00 GMT
  • Disposition: Resolved — I2JAV 1.1
  • Disposition Summary:

    withdrawn by submitter

  • Updated: Fri, 6 Mar 2015 21:38 GMT