Bug 70986 - [Prefs] Old Java project prefs are not all stored while migrating to new API
Summary: [Prefs] Old Java project prefs are not all stored while migrating to new API
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:
: 68988 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-28 10:58 EDT by Frederic Fusier CLA
Modified: 2004-09-23 12:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2004-07-28 10:58:47 EDT
While starting a 3.0 workspace with I200407271028 build, I see that new
.settings folder appears in projects I have set specific compiler options.
This is normal as using 3.1, we have migrated projects compiler options from
self-hand made to new Platform/Core Preferences API...

However, looking at one .prefs file contents, I see that only modified options
are stored in this file. This is not correct as all compiler preferences, even
those values are the same than workspace ones, should be present in this file.
Comment 1 Frederic Fusier CLA 2004-07-28 11:01:24 EDT
While migrating preferences, we do not write preference which have a default
value in Javaproject.updatePreferences(IEclipsePreferences)...
This test must be removed.
Comment 2 Frederic Fusier CLA 2004-07-28 12:24:13 EDT
Fixed and released in HEAD.

All compiler options for a project are now stored in IEclipsePreferences while
migrating a 3.0 or earlier workspace.

[jdt-core-internal]
Change done in JavaProject.updatePreferences(IEclipsePreferences) method.
I've tested this change (ie. open a 3.0 workspace with I200407271028 + this
fix), but no test case was added as it's not really possible to simulate this
migration using JUnit...
Comment 3 Frederic Fusier CLA 2004-09-14 07:15:15 EDT
*** Bug 68988 has been marked as a duplicate of this bug. ***
Comment 4 David Audel CLA 2004-09-23 12:36:01 EDT
Verified in I200409230100.