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 237421 - jsdoc private brokes documentation
Summary: jsdoc private brokes documentation
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 13:23 UTC by Yuuji
Modified: 2015-06-25 02:27 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 Yuuji 2013-10-21 13:23:46 UTC
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.
Comment 1 Vladimir Riha 2013-10-29 08:45:32 UTC
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)
Comment 2 stri8ed 2015-06-23 19:12:00 UTC
Noticed this as well. Really limits the usefulness of the access modifiers.
Comment 3 Petr Pisl 2015-06-24 11:30:36 UTC
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.
Comment 4 Quality Engineering 2015-06-25 02:27:40 UTC
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