Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b82
-
Not verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8018630 | 7u45 | Yekaterina Kantserova | P3 | Closed | Fixed | b01 |
JDK-8008553 | 7u40 | Yekaterina Kantserova | P3 | Closed | Fixed | b14 |
Description
The check below is too OS dependent and should be deleted.
...
binPath += File.separatorChar + "bin" + File.separatorChar + executable;
File toolFile = new File(binPath);
==> if (!toolFile.exists()) {
throw new RuntimeException(binPath + " does not exist");
}
...
On windows if executable is specified as e.g. 'java', without '.exe', the File exists() will fail. But it's still possible to run executable.
...
binPath += File.separatorChar + "bin" + File.separatorChar + executable;
File toolFile = new File(binPath);
==> if (!toolFile.exists()) {
throw new RuntimeException(binPath + " does not exist");
}
...
On windows if executable is specified as e.g. 'java', without '.exe', the File exists() will fail. But it's still possible to run executable.
Attachments
Issue Links
- backported by
-
JDK-8008553 Delete OS dependent check in JdkFinder.getExecutable()
- Closed
-
JDK-8018630 Delete OS dependent check in JdkFinder.getExecutable()
- Closed