This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 182104 - Missing Classes in index
Summary: Missing Classes in index
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-16 12:52 UTC by rmatous
Modified: 2010-03-16 16:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rmatous 2010-03-16 12:52:45 UTC
If two or more classes in the same project have the same unqualified name, then after editing one of them can't be found in index the edited one class

steps to reproduce(as I showed you today):
- create PHP project
- create PHP class (use file wizard)
- create subfolder with arbitrary name
- copy/paste the existing class into new subfolder

So, now you have two classes with same name. 

- start editing on of those classes. Imagine its body like this:
class Config {
 const AAA = 1;
 
 | 

}
- use code completion at the position of caret
- add new line spaces and repeat the previous step (CC)
- as soon as no methods appears in CC then you trapped the problem
Comment 1 Tomas Zezula 2010-03-16 15:12:39 UTC
Seems that TermDocs.read may not return less documents even when there are more docs to be loaded. This seems to happen on non optimized indexes which seems to be expected as there are more index files.
Comment 2 Tomas Zezula 2010-03-16 16:55:37 UTC
Fixed in jet-main 232c57d33bc6