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 224092 - [73cat] Call hierarchy does not work on constructor usages
Summary: [73cat] Call hierarchy does not work on constructor usages
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 14:26 UTC by misterm
Modified: 2013-01-04 07:51 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 misterm 2012-12-20 14:26:05 UTC
In a method such as:

public void method() {
    new MyClass();
}

with the cursor on MyClass(), Call Hierarchy will actually look for invocations of method() instead.

Product Version = NetBeans IDE Dev (Build 20121220-4f53a116c76b)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.3-b01
Comment 1 Jiri Prox 2012-12-20 14:44:05 UTC
Reproducible
call hierarchy does not work when invoked from constructor call. It works only when invoked directly on constructor. (tested on dev build and 7.2.1)

IMHO this is P2 - no datalost or deadlock, workaround exists
Comment 2 Ralph Ruijs 2012-12-21 09:20:27 UTC
Changeset: 8c09f8669beb
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2012-12-21 10:19
Comment 3 Quality Engineering 2012-12-22 02:29:35 UTC
Integrated into 'main-golden', will be available in build *201212220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8c09f8669beb
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #224092 - [73cat] Call hierarchy does not work on constructor usages
Comment 4 Dusan Balek 2013-01-04 07:51:07 UTC
*** Bug 224436 has been marked as a duplicate of this bug. ***