Bug 127628 - [index] CodeAssist doesn't filter deprecated types
Summary: [index] CodeAssist doesn't filter deprecated types
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 108839 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-14 04:28 EST by David Audel CLA
Modified: 2006-03-30 11:49 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2006-02-14 04:28:35 EST
build I20060214-0010

1) enable filtering of deprecated references
(Preferences>Java>Editor>Content Assist>Hide deprecated references)
2) create Y.java
/** @deprecated */
public class Y {
}
3) create X.java
class X {
  Y|
}
4) do ctrl+ space at | location
Y is proposed and shouldn't

if you add a space inside Y.java and don't save it then Y will be filtered

when editor is save the types are searched inside indexes, otherwise types are searched inside workingcopies.
Comment 1 David Audel CLA 2006-02-14 04:32:04 EST
indexes doesn't keep the part of teh modifier which contain the deprecation information.

Frederic - is it possible to add this missing information in indexes ?
Comment 2 Frederic Fusier CLA 2006-02-14 05:13:43 EST
Currently only 1 char is stored in index for modifiers information (ie. bit 0-15). To get this additional info, we'd need to store the entire integer which means add another char for bit 16 to 31...

Sounds reasonable, but I'll see if there's no other way to store this deprecated information (not sure) as there's only one meaningful bit in these 16 additional ones...
Comment 3 Frederic Fusier CLA 2006-02-27 16:55:00 EST
Fixed and released in HEAD.

Add integer high part of modifiers in index files to be able to provide entire information to requestors. Changes done in TypeDeclarationPattern and its subclasses.

Test case added in JavaSearchBugsTests
Comment 4 Olivier Thomann CLA 2006-03-28 10:53:49 EST
Verified using I20060328-0010 for 3.2M6
Comment 5 Frederic Fusier CLA 2006-03-30 11:49:51 EST
*** Bug 108839 has been marked as a duplicate of this bug. ***