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 - Hyperlink from cast leads to constructor instead of a class
Summary: Hyperlink from cast leads to constructor instead of a class
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-01 11:49 UTC by Vladimir Kvashin
Modified: 2014-11-19 13:09 UTC (History)
0 users

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 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
    }
};