JDK-6717659 : It is possible to add multiple jre entries which point to same jre
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2008-06-22
  • Updated: 2010-04-04
  • Resolved: 2009-01-13
Related Reports
Duplicate :  
Description
See attachment.

1. Intall java 6u10
2. Open java control panel, go to java tab
3. Under Java Applet runtime settings, click on the view button.
4. Click on the find button and select the same jre which is already listed in the table ( eg. c:\program files\java\jre6 for windows)
5. Click next -> next and then Finish button in JRE finder window

If you see, the same JRE is getting listed twice in the table, the bug is reproduced. 

How it does not impact much : 
Though it get listed in the table, when OK is clicked, it finds out intelligently that there are two entries and it removes one. When you open next time by clicking the view button, you can see there is only one entry listed.

How it impacts :
Set some Java runtime arguments for the first entry. When the second entry is added and clicked OK, it makes the latest one (second entry) as the valid one and thus loosing the runtime arguments. 

What is Expected : 
When the Finish button is cliked on the JRE finder window, it should popup a message saying there is already one entry existing which points to the same location. There should not be a redundant entry, rather it should highlight the same entry in the table on click of Finish button.

Comments
EVALUATION We have done java control panel enhancement in 6u14 under CR 6775029. The issue described here is largely addressed. in 6u14, duplicated entries will still be added to the table after the find jre dialog. Duplicates are not saved to deployment properties. They are removed but java runtime parameter for any of duplicated entry will be preserved. Next time when the jre table is opened, all jres without duplicates are sorted and listed.
13-01-2009