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.
C++ code: class A; template<typename T> class Visitor { void VisitCallExpr(A *CE) { return static_cast<T*> (this)->VisitExpr(CE); } }; int main(int argc, char** argv) { return 0; } Problems: 1. Hyper link from "VisitExpr" go to beginning of file 2. Completion is available inside "VisitExpr" with empty element. If completion is applied, the result is wild: VisitTemplateBasedReferencedObjectResultItem for lastType=Visitor::T*, textAfterType=Expr
Created attachment 148940 [details] proposed patch for first problem
fixed in enum, branch release82, changeset 4955ec95dd1d
Integrated into 'main-silver', will be available in build *201704110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/01e9abb170a9 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #246755 Wrong code completion on template parameter (transplanted from 4955ec95dd1dacc2fe20491adb2ef5f09a813141)
https://netbeans.org/bugzilla/show_bug.cgi?id=246755 Changesets: http://hg.netbeans.org/releases/rev/4955ec95dd1d # fixed Bug #246755 Wrong code completion on template parameter
Verified in in netbeans-8.2-20170421.