Bug 16131

Summary: Java search fails to find all references to static final MB_ADDITIONS
Product: [Eclipse Project] JDT Reporter: Dan Kehn <kehn>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dan Kehn CLA 2002-05-16 07:48:22 EDT
Unzipped driver 0515.  I imported all plug-ins (55, no copy) and searched for 
MB_ADDITIONS.  I only got four hits, so I tried qualifying it as 
IWorkbenchConstants.MB_ADDITIONS, and 
org.eclipse.ui.IWorkbenchConstants.MB_ADDITIONS.  I all three cases, Java 
search only found four matches.  I unzipped all the *src.zip files and searched 
manually.  It found 25 matches.

I tried searching by field and type (?), no difference.  Is there a way to get 
the desired search result?
Comment 1 Erich Gamma CLA 2002-05-16 10:15:16 EDT
static final ints can be inlined in the generated code. MB_ADDITIONS is gone 
our current code base, but I think it was a static final String. Not sure how 
they are handled moving on to JDT CORE
Comment 2 Philipe Mulet CLA 2002-05-16 11:22:24 EDT
Constants are directly inlined in binaries, thus we cannot find them any longer 
(would require to harvest the attached sources for this sole purpose).

In sources we find them ok.