Bug 4000

Summary: JavaRuntime: initializeVMInstalls not robust against multiple calls (1GFO0YG)
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P2    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Erich Gamma CLA 2001-10-10 23:04:23 EDT
TM (6/21/2001 12:06:20)
	SDK 125

	1) in the startup of a plugin that contributes a IVMInstallType, call JavaRuntime.getVMInstallTypes
	2) open the Installed JRE's preference page
	3) now the initializeVMInstalls() method on JavaRuntime is called
	4) this executes the startup method
	5) the getVMInstallTypes() call from the startup method executes initializeVMInstalls() again.
	6) the initialization is executed twice, possibly overwriting results of the first initialization.
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:16:43 EDT
moved to 'active'
Comment 2 Martin Aeschlimann CLA 2001-10-22 05:27:00 EDT
Added 'synchronize' to the initialize methods
> 205