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 81683 - code completion fails for inner classes
Summary: code completion fails for inner classes
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 12:22 UTC by _ jrichard
Modified: 2007-11-06 14:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test source file (308 bytes, application/octet-stream)
2006-08-02 12:22 UTC, _ jrichard
Details
second upload, think I got it right this time (517 bytes, text/plain)
2006-08-03 01:13 UTC, _ jrichard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ jrichard 2006-08-02 12:22:06 UTC
It appears that code completion (and especially override completion) is broken for inner classes.  

NetBeans IDE Dev (Build 200607301800)
1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-64
Mac OS X version 10.4.7 running on ppc
en_US (nb); MacRoman
Comment 1 _ jrichard 2006-08-02 12:22:51 UTC
Created attachment 32437 [details]
test source file
Comment 2 Jiri Prox 2006-08-02 15:45:30 UTC
I connot found no inner class in the attached file, is it the right file? 
CC in inner classes are sensitive to syntax error in the code, if there is
syntax error anywhere in the class (inner or outer) , the CC is not correct.
Comment 3 _ jrichard 2006-08-03 01:11:53 UTC
I must have uploaded the wrong file -- sorry.

But you're right, it does seem to have something to do with the errors.  As I start to override a method, 
in an inner class, sometimes it works sometimes it doesn't.  It seems to depend on if the parser has run 
yet.

In the newly uploaded file NewMain.java, if I go to the doS, wait a few seconds for the red error 
underline to appear, and then type ctrl+space, I won't be able to override.  Code completion says "No 
Suggestions"

If I remove the doS, save, wait a while, then quickly type doS ctrl+space, the override appears.


Comment 4 _ jrichard 2006-08-03 01:13:21 UTC
Created attachment 32468 [details]
second upload, think I got it right this time
Comment 5 Miloslav Metelka 2006-09-12 09:04:53 UTC
It seems that parser won't recover well from the situation when you type
identifier "doS" after "public class Child extends Parent {". You may see that
all the folds except for newMainDoSomething() disappear and also the navigator
won't show anything else. Reassigning to javacore for further evaluation.
Comment 6 Jan Becicka 2006-10-26 16:27:48 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 7 Quality Engineering 2007-09-20 09:54:45 UTC
Reorganization of java component
Comment 8 Jiri Prox 2007-11-06 14:33:29 UTC
it's working fine now -> verified

Product Version: NetBeans IDE Dev (Build 20071106001900)
Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b06
System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb)