I2JAV 1.1 NO IDEA Avatar
  1. OMG Issue

I2JAV11 — Union exceptions

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

    Given a union such as:

    union u switch (long)

    { case 2: case 3: case 4: string string_member; case 5: double double_member; }

    ;

    I get a modifier

    public void string_member(int d, string v);

    What should happen if I call string_member(99, "hello")?

    Clearly, this is meaningless, but the spec doesn't say what should happen.
    I would suggest to throw BAD_PARAM.

  • Reported: I2JAV 1.0 — Tue, 31 Oct 2000 05:00 GMT
  • Disposition: Resolved — I2JAV 1.1
  • Disposition Summary:

    see below

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