-
Bug
-
Resolution: Fixed
-
P4
-
17
-
b10
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.
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.
- relates to
-
JDK-8254702 jpackage app launcher crashes on CentOS
-
- Resolved
-