[MDSAL-360] Union type fails to check its constituent types Created: 03/Jul/18  Updated: 11/Jul/18  Resolved: 11/Jul/18

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: Fluorine

Type: Bug Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to TSC-126 Union embedded types length/range che... Resolved

 Description   

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.


Generated at Wed Feb 07 20:09:36 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.