Bug 55206 - Default property in preferences lost
Summary: Default property in preferences lost
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-18 05:24 EST by Jerome Lanneluc CLA
Modified: 2004-03-18 08:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2004-03-18 05:24:59 EST
N20040318

Some JDT Core tests failed in this nightly build because 
Preferences.defaultPropertyNames() doesn't include the properties that have the 
default String value.

Code in PreferenceForwarder.setDefault(String, String) looks like it forget the 
name of the property if its value is "".
Comment 1 DJ Houghton CLA 2004-03-18 08:10:24 EST
See bug 51309.

The spec for Preferences.defaultPropertyNames says that it doesn't return names
for defaults which are the same as the default-default value. The implementation
was incorrectly storing those defaults.

Marking as invalid. 
Comment 2 DJ Houghton CLA 2004-03-18 08:10:57 EST
Note that if most people agree, we could probably look into changing the spec to
match the behaviour.