Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4557

compilation error for duplicate typedef name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Environment:

      ONOS BUILD

    • Story Points:
      3

      Description

      code : https://gerrit.onosproject.org/#/c/9249/12

      yang file:
      typedef sathish

      { type string; }

      typedef sathish { type string; }

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building onlab-test 1.6.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ onlab-test —
      [INFO]
      [INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-test —
      [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/root1/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US
      [INFO]
      [INFO] — yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-test —
      [INFO] Source directory added to compilation root: /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen
      [INFO]
      [INFO] — maven-resources-plugin:2.7:resources (default-resources) @ onlab-test —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/root1/onos/utils/test/src/main/resources
      [INFO] Copying 1 resource
      [INFO]
      [INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ onlab-test —
      [INFO] Compiling 11 source files to /home/root1/onos/utils/test/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/Sathish.java:[119,0] error: class, interface, or enum expected
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/Sathish.java:[121,0] error: class, interface, or enum expected
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/Sathish.java:[122,0] error: class, interface, or enum expected
      [INFO] 3 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.097 s
      [INFO] Finished at: 2016-05-17T17:54:28+05:30
      [INFO] Final Memory: 24M/383M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project onlab-test: Compilation failure: Compilation failure:
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/Sathish.java:[119,0] error: class, interface, or enum expected
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/Sathish.java:[121,0] error: class, interface, or enum expected
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/Sathish.java:[122,0] error: class, interface, or enum expected
      [ERROR] -> [Help 1]

        Attachments

          Activity

            People

            • Assignee:
              bsaraswal bharat saraswal
              Reporter:
              sathishmurugesan sathishkumar murugesan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: