Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358823 - Checkbox wrongly enabled on Clean up preference page
Summary: Checkbox wrongly enabled on Clean up preference page
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 3.8 M3   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-25 11:11 EDT by Deepak Azad CLA
Modified: 2011-09-30 06:20 EDT (History)
2 users (show)

See Also:


Attachments
screenshot (85.75 KB, image/png)
2011-09-25 11:11 EDT, Deepak Azad CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Azad CLA 2011-09-25 11:11:10 EDT
Created attachment 203971 [details]
screenshot

Win 7 and Eclipse 4.2 (I20110916-1615). In the past I have also seen this on Linux, but I think this used to work correctly on Win XP.

See attached screenshot.
Comment 1 Deepak Azad CLA 2011-09-30 06:20:31 EDT
Not a OS specific issue, this depends on which JRE is used - 1.5, 1.6, 1.7, Oracle, IBM. On my Win 7 machine, this works fine with IBM JDK 1.5 and Oracle JDK 1.7, but does not work with IBM JDK 1.6.

The current behavior depends on the order of notification in java.util.Observable.notifyObservers(Object), which is different in different JREs. The javadoc of Observable class also says "The order in which notifications will be delivered is unspecified."

Hence, the right fix is to not rely on the order of notification, which is quite simple to do.

Fixed in HEAD. Commit - c1839c46b38bc8d387d9b5cd4408c694d4c413c7