Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-360

Union type fails to check its constituent types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Fluorine
    • None
    • Binding codegen
    • None

      A simple code snippet:

      typedef foo-union {
          type union {
              type string {
                  length 0;
              }
          }
      }
      

      ends up generating:

          public FooUnion(String _string) {
              super();
              this._string = _string;
          }
      

      which is obviously missing length restrictions.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: