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 88618 - Hyperlink works wrong withing functions in class declaration
Summary: Hyperlink works wrong withing functions in class declaration
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 88802 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-03 16:41 UTC by Vladimir Voskresensky
Modified: 2008-01-09 14:42 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 Voskresensky 2006-11-03 16:41:15 UTC
class AA {
   static void boo() {
      boo();
   }
}

hyperlink for both "boo" doesn't work
Comment 1 Vladimir Kvashin 2006-11-07 11:15:25 UTC
Note that if you change "class" to "struct" in the example, gyperlinks works.
If you add "public" before function definition it works either
Comment 2 Vladimir Kvashin 2006-11-07 14:23:03 UTC
The absense of correct hyperlink and code completion is too visible in this
case. Upgrading to P2.
Comment 3 Vladimir Voskresensky 2006-11-08 14:30:30 UTC
*** Issue 88802 has been marked as a duplicate of this issue. ***
Comment 4 Vladimir Voskresensky 2006-11-08 14:31:11 UTC
fixed:
- MethodDDImpl should be FUNCTION_DEFINITION for correct resolving context

cvs log:
Checking in modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/MethodDDImpl.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/MethodDDImpl.java,v
 <--  MethodDDImpl.java
new revision: 1.2.2.4; previous revision: 1.2.2.3
done
Checking in modelapi/src/org/netbeans/modules/cnd/api/model/util/CsmTracer.java;
/shared/data/ccvs/repository/cnd/modelapi/src/org/netbeans/modules/cnd/api/model/util/CsmTracer.java,v
 <--  CsmTracer.java
new revision: 1.2.2.8; previous revision: 1.2.2.7
done
Comment 5 alexandrov 2007-12-29 08:52:51 UTC
I reopen bug, but decrease the priority because there were a situation which I could not repeat in fresh userdir where
hyperlink on such example still does not work. Moreover I had an AssertionError on codecompletion invoking for example
in http://cnd.netbeans.org/issues/show_bug.cgi?id=88802

java.lang.AssertionError: Failed to get FileImpl by UID KeyBasedUID on FileKey (/usr/local/includeL, ?)
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileContainer.getFiles2(FileContainer.java:235)
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileContainer.getFileImpls(FileContainer.java:225)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getAllFileImpls(ProjectBase.java:1420)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getHeaderFiles(ProjectBase.java:1435)
        at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.gatherLibIncludedMacros(CsmContextUtilities.java:206)
        at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.findMacros(CsmContextUtilities.java:164)
        at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.findLibMacros(CsmContextUtilities.java:137)
        at
org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getLibMacros(CsmProjectContentResolver.java:311)
        at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:307)
        at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolve(CompletionResolverImpl.java:162)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:886)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:812)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:233)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:215)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:149)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:129)
        at org.netbeans.modules.cnd.completion.cplusplus.CsmCompletionProvider$Query.query(CsmCompletionProvider.java:163)
        at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
Comment 6 alexandrov 2008-01-09 14:42:59 UTC
could not repeat it any more