Bug 46964 - Can not set Javadoc compiler setting
Summary: Can not set Javadoc compiler setting
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.0 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 46922 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-19 09:30 EST by Martin Aeschlimann CLA
Modified: 2003-11-20 05:29 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2003-11-19 09:30:40 EST
20031119

1. open the compiler preference page
2. change 'Problems in Javadoc' to 'error'
3. press 'ok'
4. open the preference page again.
    optionms still set to 'ignore'

The preference page sets the setting correctly with JavaCore.setOptions().
The compiler page still uses the old constant.
Comment 1 Frederic Fusier CLA 2003-11-19 12:01:18 EST
Due to synch problem between jdt-ui and jdt-core changes. My initial fix was 
taken into account the fact that jdt-ui directly refers to old key. As in this 
new build this was no longer the case, the fix becomes invalid :(
Comment 2 Frederic Fusier CLA 2003-11-19 12:39:34 EST
Fixed.

Remove all temporary set of old key in the options map (needed as the UI dialog 
refered to it in previous version).

There was also a problem as we need to remove the old key from preferences. In 
getOptions() of JavaCore and JavaProject when old key was encountered, set the 
old key preference to default value (which means remove it...) and store the 
new key preference with the get value.

No specific test cases as this is temporary until M6 build.

To verify that this bug is correctly fixed, we need to open eclipse on a old 
workspace which had Javadoc compiler options set both on workspace and project 
preferences. After the workspace open, the previous values for these options 
should be kept.

Also verify that values changes for these options both on workspace and project 
are also kept when closing and reopening preferences windows.

Also verify that no old keys are stored in preference files after closing the 
workspace.
Comment 3 Olivier Thomann CLA 2003-11-19 16:55:06 EST
Verified in 200311191547.
Comment 4 Martin Aeschlimann CLA 2003-11-20 05:29:13 EST
*** Bug 46922 has been marked as a duplicate of this bug. ***