Template issue compiling org-openroadm-pm-types@2020-03-27 yang model
Description
Environment
None
Attachments
1
- 01 Apr 2022, 08:08 AM
Activity
Show:
Robert Varga
changed the PriorityFebruary 6, 2025 at 2:17 PMHighest (migrated)
Robert Varga
changed the StatusApril 1, 2022 at 1:45 PMIn Review
Resolved
Robert Varga
updated the ResolutionApril 1, 2022 at 1:45 PMNone
Done
Robert Varga
changed the StatusApril 1, 2022 at 8:49 AMIn Progress
In Review
Robert Varga
changed the PriorityApril 1, 2022 at 8:34 AMHighest (migrated)
Robert Varga
updated the Fix versionsApril 1, 2022 at 8:34 AMNone
9.0.2
Robert Varga
updated the LabelsApril 1, 2022 at 8:34 AMNone
regression
Robert Varga
updated the Affects versionsApril 1, 2022 at 8:34 AMNone
9.0.0
Robert Varga
changed the StatusApril 1, 2022 at 8:34 AMOpen
In Progress
Gilles THOUENON
added an AttachmentApril 1, 2022 at 8:08 AMNone
test-model.tar.gz
Gilles THOUENON
updated the Affects versionsApril 1, 2022 at 8:05 AMNone
9.0.1
Gilles THOUENON
updated the DescriptionApril 1, 2022 at 8:04 AMWhen 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 AMNone
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
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.