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.
I have a google closure project. Sample Code: /** * @private * @returns {String} */ test.prototype.getTest = function() { return "test"; }; test.prototype.run = function() { var foo = this.getTest(); // [...] }; getTest is declared private. Of course the run function can call the getTest function in the this context. The navigator shows it correct: - test |_ prototype |_getTest() : String (with private sympbol) |_run() : undefined But if I use code completion in the run function, after the dot after this, Netbeans did not show the getTest function. In the above sample Netbeans claims the getTest function as unused. Of course this is incorrect. Also, if the getTest function returns an object, the autocompletion function did not provide any function or key of the returned object.
Reproducible, thank you for reporting Product Version: NetBeans IDE Dev (Build 201310290001) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Noticed this as well. Really limits the usefulness of the access modifiers.
I have fixed the code completion issue as well. So now should work code completion correctly after this. and also if the getTest() method returns an object, then the code completion in this.getTest().| works as well. There is still minor issue about displaying the right icon of the private modifier in navigator and code completion items. See issue #253147.
Integrated into 'main-silver', will be available in build *201506250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/101048f5d31e User: Petr Pisl <ppisl@netbeans.org> Log: #237421 - jsdoc private brokes documentation