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 20131114-afedfaa97c4d) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b49, Java(TM) SE Runtime Environment, 1.8.0-ea-b107 OS: Windows 7 User Comments: jiriprox: IAE when invoking instant rename in second file Steps to reproduce: 1) invoke instant rename 2) switch to another file 3) invoke instant rename in current file -> exception is thorwn and the content of editor disappears Stacktrace: java.lang.IllegalArgumentException: No highlight contains the caret. at org.netbeans.modules.refactoring.java.plugins.InstantRefactoringPerformer.<init>(InstantRefactoringPerformer.java:178) at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider.doInstantRename(RefactoringActionsProvider.java:138) at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider.invokeInstantRename(RefactoringActionsProvider.java:127) at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider.doRename(RefactoringActionsProvider.java:97) at org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory.doRename(ActionsImplementationFactory.java:91) at org.netbeans.modules.refactoring.spi.impl.RenameAction.performAction(RenameAction.java:77)
Created attachment 142390 [details] stacktrace
Created attachment 142402 [details] stacktrace Calling Rename on keyword
Created attachment 142847 [details] stacktrace 1. Opened Java source file. 2. Pressed Ctrl+F 3. Pressed Ctrl+R This exception was thrown.
Created attachment 143003 [details] stacktrace 1. In the editor, hghlight the keyword "class" in a java source file 2. Press Ctrl+F and notice the word appears in Find Toolbar field. 3. Press Ctrl+R and this Exception happens Repeatable
Actually, you can just highlight the keyword "class" and press Ctrl+R and this exception it thrown. Repeatable
This also happens with keywords "enum" and "new".
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=205430
The instant rename popup has been disabled in 8.0 (bug 215138, comment 7)
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss