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.
[#200711041200, jdk1.5.0] to reproduce: ------------- 1) have .js like: var x = new Array(2); x[0]=x; ERROR: CC for 'x.|' and 'x[0].|' offers different items
reproducible
This issue originated in NetCAT 6.0 program.
Fixed in build 682 of NetBeans 6.1.
[Build 200806180005, JDK 1.6.0] CC for 'x.|' and 'x[0].|' still offers different list of possibilities - see attached image. Or is that a feature? Reopening...
Created attachment 62998 [details] Different CC lists for x and x[0]
The array object offers properly Array object type items. The array element offers just default Object items. It is impossible to identify the type of the element since it can be defined by some other expression depending on runtime environment. I admit the type analysis can be done if the index is defined by a number or by a simple expression and the assignment as well, but this doesn't sound like a bug to me.