Bug 72214

Summary: [Prefs] IllegalStateException when importing preferences
Product: [Eclipse Project] JDT Reporter: Cory Turner <cturner>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sudarsha_wijenayake
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Stack traces. none

Description Cory Turner CLA 2004-08-18 16:40:06 EDT
Version: 3.1.0
Build id: 200408101200 (was also happening in HEAD code). 

1) Export a preference set. 
2) Import it. 

A dialog appears warning about an error that has occured "Updating Installed
JREs". Closing the workbench now prompts another error dialog "Preference node
"org.eclipse.jdt.core" has been removed."

Stack traces attached.
Comment 1 Cory Turner CLA 2004-08-18 16:40:42 EDT
Created attachment 14060 [details]
Stack traces.
Comment 2 Kim Horne CLA 2004-08-19 08:25:44 EDT
It looks like this problem is originating in the JDT core.  Reassigning.
Comment 3 Frederic Fusier CLA 2004-09-08 08:56:02 EDT
Fixed.

JDT/Core workspace preferences were stored in JavaCore and not refreshed when
they were removed during the import...
Add a listener to JavaCore instance which listen when workspace preferences are
removed and refresh stored preferences with new one.

[jdt-core-internal]
Changes done in JavaCore.start(BundleContext).
Test cases added in OptionTests.
Comment 4 Olivier Thomann CLA 2004-09-10 17:52:35 EDT
*** Bug 73707 has been marked as a duplicate of this bug. ***
Comment 5 David Audel CLA 2004-09-23 10:18:48 EDT
Verified in I200409240100.