Template issue compiling org-openroadm-pm-types@2020-03-27 yang model

Description

When compiling the following org-openroadm-pm-types@2020-03-27 yang model (yang model from OpenROADM community, implemented in TransportPCE project), the following issue appears:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/gilles/transportpce/ordmodels/common/target/generated-sources/BindingJavaFileGenerator/org/opendaylight/yang/gen/v1/http/org/openroadm/pm/types/rev200327/PmDataType.java:[67,30] cannot find symbol
symbol: method getValue()
location: variable _decimal64 of type org.opendaylight.yangtools.yang.common.Decimal64

This yang module contains on line 90 a typdef pm-data-type which is the union of uint64, int64 and decimal64.
When generating the java code, the PmDataType class invokes in the stringValue method a .getValue() method on the decimal64 type argument which does not exist in the Decimal64 class.

Environment

None

Attachments

1
  • 01 Apr 2022, 08:08 AM

Activity

Show:
Robert Varga
changed the PriorityFebruary 6, 2025 at 2:17 PM
Highest (migrated)
Highest
Robert Varga
changed the StatusApril 1, 2022 at 1:45 PM
In Review
Resolved
Robert Varga
updated the ResolutionApril 1, 2022 at 1:45 PM
None
Done
Robert Varga
changed the StatusApril 1, 2022 at 8:49 AM
In Progress
In Review
Robert Varga
changed the PriorityApril 1, 2022 at 8:34 AM
Medium
Highest (migrated)
Robert Varga
updated the Fix versionsApril 1, 2022 at 8:34 AM
None
9.0.2
Robert Varga
updated the LabelsApril 1, 2022 at 8:34 AM
None
regression
Robert Varga
updated the Affects versionsApril 1, 2022 at 8:34 AM
None
9.0.0
Robert Varga
changed the StatusApril 1, 2022 at 8:34 AM
Open
In Progress
Gilles THOUENON
added an AttachmentApril 1, 2022 at 8:08 AM
None
test-model.tar.gz
Gilles THOUENON
updated the Affects versionsApril 1, 2022 at 8:05 AM
None
9.0.1
Gilles THOUENON
updated the DescriptionApril 1, 2022 at 8:04 AM
When compiling the following org-openroadm-pm-types@2020-03-27 yang model (yang model from OpenROADM community, implemented in TransportPCE project), the following issue appears: !screenshot-1.png|thumbnail! This yang module contains on line 90 a typdef pm-data-type which is the union of uint64, int64 and decimal64. When generating the java code, the PmDataType class invokes in the stringValue method a .getValue() method on the decimal64 type argument which does not exist in the Decimal64 class.
When compiling the following org-openroadm-pm-types@2020-03-27 yang model (yang model from OpenROADM community, implemented in TransportPCE project), the following issue appears: [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/gilles/transportpce/ordmodels/common/target/generated-sources/BindingJavaFileGenerator/org/opendaylight/yang/gen/v1/http/org/openroadm/pm/types/rev200327/PmDataType.java:[67,30] cannot find symbol symbol: method getValue() location: variable _decimal64 of type org.opendaylight.yangtools.yang.common.Decimal64 This yang module contains on line 90 a typdef pm-data-type which is the union of uint64, int64 and decimal64. When generating the java code, the PmDataType class invokes in the stringValue method a .getValue() method on the decimal64 type argument which does not exist in the Decimal64 class.
Gilles THOUENON
updated the DescriptionApril 1, 2022 at 8:03 AM
None
When compiling the following org-openroadm-pm-types@2020-03-27 yang model (yang model from OpenROADM community, implemented in TransportPCE project), the following issue appears: !screenshot-1.png|thumbnail! This yang module contains on line 90 a typdef pm-data-type which is the union of uint64, int64 and decimal64. When generating the java code, the PmDataType class invokes in the stringValue method a .getValue() method on the decimal64 type argument which does not exist in the Decimal64 class.
Gilles THOUENON
created the IssueApril 1, 2022 at 7:55 AM
Done

Details

Assignee

Reporter

Labels

Fix versions

Affects versions

Priority

Created April 1, 2022 at 7:55 AM
Updated February 6, 2025 at 2:17 PM
Resolved April 1, 2022 at 1:45 PM