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 247625

Summary: Hyperlink from cast leads to constructor instead of a class
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Kvashin 2014-10-01 11:49:34 UTC
With both static_cast and C-style cast, if you click the name of the class, hyperlink leads you to this class constructor instead of leading to the class itself:

#define NULL 0
class other_class  { // hyperlink should lead here
public:
    void foo(void* p) {
        other_class* p2;
        p2 = static_cast<other_class*> (p2); // hyperlink leads to constructor
        p2->foo(NULL);
        p2 = (other_class*) (p2); // hyperlink leads to constructor
        p2->foo(NULL);
    }
    other_class() { // hyperlink leads here
    }
};