Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-738

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • 9.0.2
    • 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.

            rovarga Robert Varga
            gthouenon Gilles Thouenon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: