[MDSAL-738] Template issue compiling org-openroadm-pm-types@2020-03-27 yang model Created: 01/Apr/22  Updated: 01/Apr/22  Resolved: 01/Apr/22

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: 9.0.0, 9.0.1
Fix Version/s: 9.0.2

Type: Bug Priority: Highest
Reporter: Gilles Thouenon Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File test-model.tar.gz    

 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.


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