Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 143020

Summary: [call hierarchy] hierarchy on implicit default contructor
Product: [Eclipse Project] JDT Reporter: mike.andrews <mike.andrews>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse, martinae
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description mike.andrews@sac.com CLA 2006-05-22 13:21:02 EDT
if i try to open a call hierarchy on a no-argument constructor (like for MyClass, below), and that constructor wasn't explicitly coded in the java source, nothing shows up!

workaround is to create dummy constructor (i.e., like public MyClass() { }).

thanks!
mike
Comment 1 Martin Aeschlimann CLA 2006-05-26 04:48:46 EDT
Fixing this is also very difficult for us. The Java model has no element for the implicit default contructor, so we would have to introduce a fake Java element. ->  This is asking for troubles.

Setting to later
Comment 2 Görge Albrecht CLA 2007-10-16 15:01:47 EDT
Just wanted to point out that this seems to be related to bug 171658
Comment 3 Görge Albrecht CLA 2008-06-09 09:16:58 EDT
Regarding my former comment (#2):

I think this is not only related by fixed by bug 171658:
If you want to see the call hierachy for the standard constructor, just open the call hierachy on the class name. 

This said, I think this bug should be marked as a duplicate of bug 171658.

Comment 4 Martin Aeschlimann CLA 2008-06-09 09:23:31 EDT
Thanks for the hint!

*** This bug has been marked as a duplicate of bug 171658 ***