[MDSAL-167] no constructor for indentityref in union Created: 12/May/16  Updated: 09/Mar/18  Resolved: 04/Jun/16

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

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

Operating System: All
Platform: All


External issue ID: 5883

 Description   

The generated java code for union with identityref doens't include a constructor for identityref.

module union-with-identityref {
yang-version 1;
namespace "urn:opendaylight:yang:union:test";
prefix "uniontest";

description "test union with identityref";

revision "2016-05-09";

identity ident-base;
identity ident-one

{ base ident-base; }
identity ident-two { base ident-base; }

typedef union-type {
type union {
type uint8;
type identityref

{ base ident-base; }

}
}
}

generated java code
public class UnionType
implements Serializable {
private static final long serialVersionUID = 4724108168179933454L;
private final java.lang.Short _uint8;
private final char[] _value;

public UnionType(java.lang.Short _uint8)

{ super(); this._uint8 = _uint8; this._value = _uint8.toString().toCharArray(); }

...



 Comments   
Comment by Isaku Yamahata [ 12/May/16 ]

https://git.opendaylight.org/gerrit/#/c/38822/

Comment by Isaku Yamahata [ 12/May/16 ]

This is a blocker for neutron northbound project.

Comment by Robert Varga [ 28/May/16 ]

Be: https://git.opendaylight.org/gerrit/39559

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