-
Bug
-
Resolution: Done
-
Highest
-
9.0.0, 9.0.1
-
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:
[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.