Bug 5358

Summary: Suspicious usage of IJavaElementDelta.getFlags()
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2001-10-30 11:04:34 EST
Build 20011025

Searching for references to IJavaElement.getFlags(), I found suspicious usage 
in JDT UI code. 

There are pattern of code like this one:
  delta.getFlags() == IJavaElementDelta.F_CONTENT
where it should be:
  (delta.getFlags() & IJavaElementDelta.F_CONTENT) != 0
Comment 1 Erich Gamma CLA 2001-10-30 11:31:56 EST
TypeHierarchyLifeCycle is using this pattern inside processDelta

Comment 2 Martin Aeschlimann CLA 2001-10-31 13:21:33 EST
fixed > 11025