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.
IndexOutOfBoundsException while refactoring Java Code: Index 2 size 2
Created attachment 54258 [details] requested log file
Any steps to reproduce? Thanks.
To reproduce the error: Create a project with the following interface: package JoXer.Menus; import JoXer.ProgressIndicator.TellUser; /** Copyright 2003-2007 YAR Anner Ltd. * 46, Jerusalem St. Kfar-Saba, Israel */ /** @version 1.2.2 */ /** Interface requirement for Java-written menu action classes * * @author Amotz Anner */ public interface MenuActionClass { /** Perform the menu action * @return <b>true</b> if action succeeded * @param componentName The name of the component invoking the action. * @param fetcher A context fetcher object. * @param label Label attribute value from the menu item definition. * @param tellUser User teller object. May be <b>null</b>. * @param params Optional additional parameters. */ boolean performAction(MenuFetchContext fetcher, String label, String componentName, TellUser tellUser, Object...params); } Invent any definitions for MenuFetchContext and TellUser. They are not important. Try refactor->change method signature to add the following paramter: CountDownLatchWithProgress.CountDownable cntDn As the fourth parameter, before the var-args one. To do that you need to define it as fifth parameter, and then move it up to fourth position. The index ordinal error seems related to this movement, as it was 4 for this example. I'm not sure that actual usages are required, but you may add some usage instances to the project, for verisimilitude. I shall also attach the log for this error.
Created attachment 54270 [details] log file
*** This issue has been marked as a duplicate of 129376 ***