JDK-8260190 : Incomplete JDK-8259215 fix
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 8u271
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2021-01-20
  • Updated: 2021-04-01
  • Resolved: 2021-01-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u291 b03Fixed
Related Reports
Relates :  
Relates :  
Description
Fix for JDK-8259215 is incomplete. The following use case is not working properly:

1. Install jdk15
2. Install jre8
3. Uninstall jdk15
Expected result: "java - version" prints version of installed jre8. Actual result: java command not found. No javapath in PATH env variable.

Suggested fix is to revert JDK-8259215 and rework  AddjavapathDirToSystemPathVariable() function from JavaPath.cpp to insert jdk8's javapath entry after jdk15's javapath entry if there is one in PATH.