Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261298

LinuxPackage.c, getJvmLauncherLibPath RPM->DEB typo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b10

      Description

      SonarCloud instance reports as new warning after JDK-8254702:

      This branch can not be reached because the condition duplicates a previous condition in the same sequence of "if/else if" statements.

      char* getJvmLauncherLibPath(void) {
         ...
              if (PACKAGE_TYPE_RPM == pkg->type) {
                  pkgQueryCmd = "rpm -ql '%s' 2>/dev/null";
              } else if (PACKAGE_TYPE_RPM == pkg->type) { <--- here
                  pkgQueryCmd = "dpkg -L '%s' 2>/dev/null";

      Seems like an obvious typo.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: