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 44571 - Go To Source often nonfunctional
Summary: Go To Source often nonfunctional
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords: REGRESSION
: 44520 44525 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-08 17:54 UTC by Jesse Glick
Modified: 2007-11-05 13:38 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 Jesse Glick 2004-06-08 17:54:46 UTC
040608, JDK 1.5.0 b54. It seems Go To Source
(Alt-G) doesn't work too often these days (after
refactoring merge). Frequently does nothing. E.g.
I open
.../nb_all/core/src/org/netbeans/beaninfo/LoaderActionsPanel.java,
go to one of the lines in the guarded blocks using

  java.util.ResourceBundle.getBundle

position cursor over the method name, and press
Alt-G. Nothing happens.

Note that I have src.zip correctly installed -
Alt-Shift-O works to jump to ResourceBundle.java.
And code completion shows correct popup Javadoc
for the method call. But Alt-G does nothing. Nor
does Alt-O. The context menu items for these are
enabled however.

However this is fixed, I would strongly suggest
that Alt-G be changed to never simply do nothing.
If it cannot jump to the declaration of the member
under point, it should show an alert dialog
explaining why not. Or beep, or something. An
enabled action should generally never just do
nothing without any explanation.
Comment 1 Martin Roskanin 2004-06-09 07:36:46 UTC
I reproduced it. 

As for notification, IIRC there used to be a message displayed in
editor status bar, but now nothing is shown...
Comment 2 Jesse Glick 2004-06-11 16:21:19 UTC
In fact I find that Alt-G *usually* does nothing; I have more trouble
finding a case where it does work than one where it doesn't. It seems
that jumping to a method in the same class works; jumping e.g. to JDK
methods does not work; jumping to other top-level classes sometimes
works; jumping to a nested static class in the same top-level class
does not work; etc.

040610. Does not seem to correlate with other failures in code
completion etc. Really a significant regression.
Comment 3 Dusan Balek 2004-06-17 15:24:52 UTC
Fixed in [maintrunk].

Checking in libsrc/org/netbeans/editor/ext/java/JavaCompletionQuery.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaCompletionQuery.java,v
 <--  JavaCompletionQuery.java
new revision: 1.47; previous revision: 1.46
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/editor/java/JMIUtils.java;
/cvs/editor/src/org/netbeans/modules/editor/java/JMIUtils.java,v  <--
 JMIUtils.java
new revision: 1.11; previous revision: 1.10
done
Checking in src/org/netbeans/modules/editor/java/JavaKit.java;
/cvs/editor/src/org/netbeans/modules/editor/java/JavaKit.java,v  <-- 
JavaKit.java
new revision: 1.85; previous revision: 1.84
done
Checking in
src/org/netbeans/modules/editor/java/NbJavaJMICompletionQuery.java;
/cvs/editor/src/org/netbeans/modules/editor/java/NbJavaJMICompletionQuery.java,v
 <--  NbJavaJMICompletionQuery.java
new revision: 1.9; previous revision: 1.8
done
Checking in
src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java;
/cvs/editor/src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java,v
 <--  NbJavaJMISyntaxSupport.java
new revision: 1.11; previous revision: 1.10
done
Comment 4 Dusan Balek 2004-06-17 15:29:09 UTC
*** Issue 44520 has been marked as a duplicate of this issue. ***
Comment 5 Dusan Balek 2004-06-17 15:32:19 UTC
*** Issue 44525 has been marked as a duplicate of this issue. ***
Comment 6 Roman Strobl 2005-07-15 11:48:40 UTC
Verified.