Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358823

Summary: Checkbox wrongly enabled on Clean up preference page
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: UIAssignee: Deepak Azad <deepakazad>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: deepakazad, markus.kell.r
Version: 3.8   
Target Milestone: 3.8 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
screenshot none

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