[YANGTOOLS-247] Classes generated for union involving a typedef of boolean fail Created: 03/Aug/14  Updated: 10/Apr/22  Resolved: 04/Aug/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Ed Warnicke Assignee: Ed Warnicke
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


External issue ID: 1475

 Description   

If you typedef a boolean:

typedef is-present

{ type boolean; }

grouping vlan-id-attributes {
leaf vlan-id {
type union

{ type match:is-present; type l2t:vlan-id; }

}
}

Results in:

[ERROR] symbol: method getValue()
[ERROR] location: variable _isPresent of type IsPresent
[ERROR] /Users/hagbard/try/controller/opendaylight/md-sal/model/model-flow-base/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/urn/opendaylight/model/match/types/rev131026/VlanIdAttributes.java:[40,36] error: cannot find symbol
[ERROR] -> [Help 1]

It appears that there is a built in call to getValue, but boolean provides isValue.



 Comments   
Comment by Ed Warnicke [ 03/Aug/14 ]

Fixed by https://git.opendaylight.org/gerrit/9635

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