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 136167 - Template variable type is not resolved in a superclass
Summary: Template variable type is not resolved in a superclass
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks: 134091
  Show dependency tree
 
Reported: 2008-05-30 14:24 UTC by Alexander Simon
Modified: 2008-06-27 16:23 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 Alexander Simon 2008-05-30 14:24:32 UTC
Test case:
-----------------------
class Persistent {
public:
    int getDatabase();
};

class Person : public Persistent {
};

template <class T> 
class RelationHandle {
protected:
    T* owner;
};

class MotherHandle : public RelationHandle<Person> {
public:
    void get();
};

void MotherHandle::get() {
    owner->getDatabase();
}
-----------------------
Hyper link and code completion do not work in context "->getDatabase()"
Comment 1 Egor Ushakov 2008-06-26 14:31:01 UTC
fixed in the changeset:
http://hg.netbeans.org/main/rev/890d49e13759
Comment 2 Quality Engineering 2008-06-27 16:23:38 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #285 build
Changeset: http://hg.netbeans.org/main/rev/890d49e13759
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed IZ#136167 and IZ#132903: implemented templates and specializtion inheritance