NEW DATE! Bugzilla will undergo maintenance 2024-03-28 18h00 CET. Bugzilla will be placed in read-only mode at that time.

Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 98828 - CompareFilter bug filtering folders
Summary: CompareFilter bug filtering folders
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 15:57 EDT by Jean-Michel Lemieux CLA
Modified: 2005-06-07 16:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Michel Lemieux CLA 2005-06-07 15:57:24 EDT
3.1 RC1

Only one folder can be filtered. Array index is hard coded to 0, should be i. 

if (folder && fExtraResourceFolderFilters != null) {
  for (int i= 0, l= fExtraResourceFolderFilters.length; i < l; i++)
    if (fExtraResourceFolderFilters[0].equals(path0))    <===== PROBLEM LINE
      return true;
}
Comment 1 Andre Weinand CLA 2005-06-07 16:10:36 EDT
Oops..., thanks for finding this.
Comment 2 Andre Weinand CLA 2005-06-07 16:23:56 EDT
fixed for N20050608
added new testcase