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.
Build: NetBeans IDE Dev (Build 20080321055501) VM: Java HotSpot(TM) Client VM, 1.5.0_13-121, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-241 OS: Mac OS X, 10.4.11, i386 User comments: Double clicked an item in the Find Usages results window to open a Java file in the editor. STACKTRACE: (first 10 lines) java.lang.IllegalArgumentException: bad position: 6765 at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1398) at org.netbeans.modules.refactoring.spi.SimpleRefactoringElementImplementation.openInEditor(SimpleRefactoringElementImplementation.java:102) at org.netbeans.modules.refactoring.spi.impl.CheckNodeListener.findInSource(CheckNodeListener.java:218) at org.netbeans.modules.refactoring.spi.impl.CheckNodeListener.mouseClicked(CheckNodeListener.java:94) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212) at java.awt.Component.processMouseEvent(Component.java:5586) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5348) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4050)
I upgrade priority to P2 because impossible to use Find Usages.
This does not seem to be a general problem, I have not managed to reproduce it. Is it reliably reproducible in your case? Can you provide a source file you used to find usages in, please?
It does not matter what source file you use. I can reproduce this issue in 100% cases on the latest build 200803250006 Important NB: Before double-clicked an item in the Find Usages results view you should close source file in editor (if it opened). Or if an item belongs to other source file which is not opened then I also get IAE.
I cannot reproduce i with the latest build. What project type do you use?
I can reproduce only with c/c++ pack. If I have both c/c++ & java pack installed -- this issue is not reproducible -- open C/C++ sample project Welcome -- do find usages for local variable argc in main() -- close welcome.cc in editor -- double-click an item in Find Usages Results window ==> Exception
This could be a problem in C/C++ find usages implementation, seems like getBounds() method called on a refactoring element returns incorrect position. Reassigning for further evaluation.
*** This issue has been marked as a duplicate of 131551 ***