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.
Product Version: NetBeans IDE Dev (Build 201502170001) Java: 1.8.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 25.40-b14 Test class code: package testusages; public class TestFindUsages { public static void main(String[] args) { TestFindUsages test = new TestFindUsages(); test.doTestFU(new java.awt.Button("Test Button")); } public void doTestFU(java.awt.Button button) { } public TestFindUsages() { } } Steps to reproduce: Invoke Find Usages over java.awt.Button constructor call in test.testFU(юю) Dialog offers java.awt package as current package scope and Button class as Current file scope I expect that current package scope is package that contains current editing file and current file scope is current editing file - not java.awt package and Button class Overall in this case I expect to find all calls to Button constructor in current editing file
changeset: 4381f1dab05b user: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date: Mon May 11 15:04:11 2015 +0200 summary: #250465 - Unexpected Find Usages scope behaviour
Integrated into 'main-silver', will be available in build *201505120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4381f1dab05b User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #250465 - Unexpected Find Usages scope behaviour
*** Bug 255376 has been marked as a duplicate of this bug. ***