Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314795 - Filter implementation must convert compareTo and equals exception into false result
Summary: Filter implementation must convert compareTo and equals exception into false ...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: BJ Hargrave CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 21:48 EDT by BJ Hargrave CLA
Modified: 2010-08-06 19:23 EDT (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 BJ Hargrave CLA 2010-05-27 21:48:58 EDT
Per OSGi bug https://www.osgi.org/members/bugzilla/show_bug.cgi?id=1637:

Exceptions from Object.equals and Comparable.compareTo should be caught and converted to false values. This is a spec clarification coming for Core 4.3. 

The current Equinox implementation does not convert the exceptions into false and the filter evaluation terminates abruptly.
Comment 1 Thomas Watson CLA 2010-08-06 16:41:24 EDT
BJ, do you have a patch for this?  FrameworkUtil is already fixed in HEAD.  Please release a fix to FilterImpl if you have one.
Comment 2 BJ Hargrave CLA 2010-08-06 19:23:45 EDT
I released the change for this bug to HEAD. 

I also updated the source for target jsr14: for each loops and generics.