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.
Note: While whittling down my code to a small demonstration of the bug, I realized that I had marked a non-public method with "@public". Removing the annotation removes the formatting issue, but I suspect there's still a bug in the JSDoc usage. In the following code the "@public" annotation causes one reference to the function "foo" to erroneously appear as a global function (and breaks navigation) but not the other. Only the one that access a property of the function's return value. (function () { /** * @public // this doesn't belong here */ function foo() { return 'foo'; } function bar() { return foo().length; // "foo" has the global variable color } function baz() { return foo(); // this "foo" is fine } }()); If NetBeans is smart enough to detect that "foo" should not be marked as "@public", it should display a warning on that line.
reproducible Product Version: NetBeans IDE Dev (Build web-main-894-on-20140613) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.13.0-29-generic running on i386; UTF-8; en_US (nb)
I'm afraid that it's an issue in the editor.
Fixed in web-main
Integrated into 'main-silver', will be available in build *201407010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f47e17c16af2 User: Petr Pisl <ppisl@netbeans.org> Log: #244989 - @public on internal function breaks some references to it