Bug 72214 - [Prefs] IllegalStateException when importing preferences
Summary: [Prefs] IllegalStateException when importing preferences
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 73707 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-18 16:40 EDT by Cory Turner CLA
Modified: 2004-09-23 10:18 EDT (History)
1 user (show)

See Also:


Attachments
Stack traces. (21.94 KB, text/plain)
2004-08-18 16:40 EDT, Cory Turner CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.