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 228289 - Instance methods and variables annotated with @private doesnt work correctly
Summary: Instance methods and variables annotated with @private doesnt work correctly
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 14:44 UTC by luke1985
Modified: 2013-07-24 02:36 UTC (History)
2 users (show)

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 luke1985 2013-04-05 14:44:44 UTC
Variables and methods annotated with @private are not parsed correctly. The references to this variables are seen and are not displayed with a "lock" icon in navigator.
Comment 1 Vladimir Riha 2013-04-26 10:29:15 UTC
Reproducible, but I don't think this is P1
Comment 2 Petr Pisl 2013-07-23 09:05:19 UTC
I have change the behavior for privileged methods and variables. So now code like

/**
 * @constructor
 * @returns {MyObject}
 */        
function MyObject () {
    
    this.publicMethodA = function () {};

    /**
     * @private
     */
    this._privateProp;
    
    /**
     * @private
     * @returns {Brouka}
     */
    this._privateMethodB = function () {};
}

works correctly. If you have other cases, where it doesn't work as you expected, please create new issue with the case. 

The change fixing the mentioned case.
Comment 3 Quality Engineering 2013-07-24 02:36:59 UTC
Integrated into 'main-silver', will be available in build *201307232300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/34f88bfa6652
User: Petr Pisl <ppisl@netbeans.org>
Log: #228289 - Instance methods and variables annotated with @private doesnt work correctly