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.
Created attachment 93472 [details] Testcase in web project zip file I am starting to use the amazing NetBeans JavaScript support. So I don't know what is actually supported or experimental. Please refer to the two js files tree.js and tree_1.js in the web folder of the attached testcase. How to reproduce: - Open tree_1.js - Open tree.js - In tree.js, go to line 9, position your cursor on privateFunction(); - Press [Ctrl+B], Go to Declaration - Do the same as above in tree_1.js Expected result: Cursor should go to declaration in same file Actual result: Cursor goes to declaration in other file
Just found that bug 159704 is similar. This testcase is more specific because it shows that the editor opens another file even if the declaration is within a private scope. So please don't close this bug as duplicate without transferring the tescase.
Testcase transferred to other bug. *** This bug has been marked as a duplicate of bug 159704 ***