Bug 98828

Summary: CompareFilter bug filtering folders
Product: [Eclipse Project] Platform Reporter: Jean-Michel Lemieux <jean-michel_lemieux>
Component: CompareAssignee: Andre Weinand <andre_weinand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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