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 250465 - Unexpected Find Usages scope behaviour
Summary: Unexpected Find Usages scope behaviour
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 255376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-17 14:09 UTC by Maksim Khramov
Modified: 2015-09-21 09:20 UTC (History)
1 user (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 Maksim Khramov 2015-02-17 14:09:42 UTC
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
Comment 1 Ralph Ruijs 2015-05-11 13:05:05 UTC
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
Comment 2 Quality Engineering 2015-05-12 03:26:15 UTC
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
Comment 3 Ralph Ruijs 2015-09-21 09:20:25 UTC
*** Bug 255376 has been marked as a duplicate of this bug. ***