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 215261 - Code Navigate to Static Class Members Failed
Summary: Code Navigate to Static Class Members Failed
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 03:30 UTC by waynezhang
Modified: 2012-11-12 09:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Grails project demo this issue (171.19 KB, application/zip)
2012-07-09 03:30 UTC, waynezhang
Details
Demo navigation project version 2. (172.55 KB, application/zip)
2012-11-12 09:03 UTC, waynezhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description waynezhang 2012-07-09 03:30:16 UTC
Created attachment 121812 [details]
Grails project demo this issue

Navigate (ALT + click left button) to static members doesn't work (no action) but navigate to non static method works.

In the example Grails project class Client (in groovy source packages nav.issue) can't navigate to static members ClientLevel.GOLD and 
ClientLevel.defaultLevel, but navigates to non static method ClientLevel.defaultLevel2().
Comment 1 Martin Janicek 2012-08-16 09:39:42 UTC
Valid issue, thanks for the report! Hopefully I'll get this for 7.3
Comment 2 Martin Janicek 2012-09-19 07:47:41 UTC
Navigation for static methods fixed in: web-main #80e18d1bd018
Comment 3 Quality Engineering 2012-09-20 02:24:19 UTC
Integrated into 'main-golden', will be available in build *201209200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/80e18d1bd018
User: Martin Janicek <mjanicek@netbeans.org>
Log: #215261 - Code Navigate to Static Class Members Failed
Comment 4 waynezhang 2012-11-12 08:57:21 UTC
Thanks for the changes. I have tested it on 7.3 beta and beta 2 and found that navigate to static method works now. However, navigate to static field (ClientLevel.GOLD) still doesn't work.

When I add another static method with a parameter defaultLevel3(defaultLevel) to class ClientLevel, ONLY the static method defaultLevel navigation works (which is the first method), navigate to non-static method defaultLevel2 and static method with parameter defaltLevel3 does NOT work any more. I have cleared NetBeans cache and the project has been re-scanned and it still did not work.

The new change to the demo application see new attachment.

Please note, navigation of this class (ClientLevel) in NetBeans navigator (view) works.

Thanks!
Comment 5 waynezhang 2012-11-12 09:03:27 UTC
Created attachment 127583 [details]
Demo navigation project version 2.