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

Summary: Template variable type is not resolved in a superclass
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code CompletionAssignee: Egor Ushakov <gorrus>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 134091    

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