Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Done
-
Nitrogen SR1
-
None
Description
If enum value is not valid Java identifier, e.g.:
type enumeration {
enum '*'
}
V1 code generator produces invalid enum constant identifier:
public class Ipv4MulticastSourceAddress
implements Serializable {
private static final long serialVersionUID = -1734346858985024066L;
public enum Enumeration {
/**
* Any source address.
*
*/
(0, "")
;
[...]
hence compilation fails.
Attachments
Issue Links
- blocks
-
MDSAL-317 Generated enumerations should be implementing a yang-binding Enumeration interface
-
- Resolved
-
- is duplicated by
-
MDSAL-208 Duplicate field PmfGrp.Pmf._25Gps
- Resolved
-
MDSAL-333 Special chars like "*" cannot be processed in enums
-
- Resolved
-
- relates to
-
MDSAL-269 Error occurs when mdsal binding v1 codec a "union" type
- Resolved
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 69317,7 | Add alternative enum assigned name mapping | master | mdsal | Status: MERGED | +2 | +1 |
| 69334,4 | Add alternative enum assigned name mapping | stable/oxygen | mdsal | Status: MERGED | +2 | +1 |
| 69336,2 | Add alternative enum assigned name mapping | stable/nitrogen | mdsal | Status: MERGED | +2 | +1 |
| 69338,2 | Add alternative enum assigned name mapping | stable/carbon | mdsal | Status: MERGED | +2 | +1 |