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.
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.
I reproduced it. As for notification, IIRC there used to be a message displayed in editor status bar, but now nothing is shown...
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.
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
*** Issue 44520 has been marked as a duplicate of this issue. ***
*** Issue 44525 has been marked as a duplicate of this issue. ***
Verified.