United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6624555 CanonicalizeJava2Registry may set CurrentVersion to random value
JDK-6624555 : CanonicalizeJava2Registry may set CurrentVersion to random value

Details
Type:
Bug
Submit Date:
2007-11-01
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-01-31
Component:
install
OS:
windows
Sub-Component:
install
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u5
Fixed Versions:
6u10 (b10)

Related Reports
Backport:

Sub Tasks

Description
Code inspection of RegInstall.cpp led to the following observation:

In CanonicalizeJava2Registry, in the block "if (dwIndex > 0)", we have to recompute the szFamilyVersion string via wsprintf after the call to ParseVersionString. At that point, szFamilyVersion is pointing to a random version string of the potentially multiple installed JRE versions.

This bug might lead to the wrong Java version being used as the CurrentVersion during uninstallation if multiple versions are installed on the machine.

                                    

Comments
EVALUATION

Will change the code to get the correct registry value.
                                     
2007-11-30
SUGGESTED FIX

webrev: http://j2se.east/deployment/www/webrevs/qz198522/6ux/6624555/deploy/
testscase: none. I did not see any incorrect CurrentVersion setting when I tested the multiple jre installation and uninstallation which included 1.4, 1.5 and 6. But, during the code inspection, the possible cause for the issue was identified. The code improvement was made.
                                     
2007-12-12



Hardware and Software, Engineered to Work Together