[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-7787) RefactorSearcher class throws ArrayIndexOutOfBoundsException exception while Java field rename

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Dec 2 08:32:04 EST 2010


     [ https://jira.jboss.org/browse/JBIDE-7787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viacheslav Kabanovich resolved JBIDE-7787.
------------------------------------------

    Resolution: Done


> RefactorSearcher class throws ArrayIndexOutOfBoundsException exception while Java field rename
> ----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-7787
>                 URL: https://jira.jboss.org/browse/JBIDE-7787
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 3.2.0.Beta2
>            Reporter: Daniel Azarov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.2.0.CR1
>
>
> Test case:
> 1. Create JSF KickStart project
> 2. Open User class
> 3. Select name field and right-click on it
> 4. Select Refactor->Rename then type 'name2' and press Enter
> FAIL:
> java.lang.ArrayIndexOutOfBoundsException: 3
> at org.jboss.tools.jst.web.kb.refactoring.RefactorSearcher.searchInCach(RefactorSearcher.java:241)
> at org.jboss.tools.jst.web.kb.refactoring.RefactorSearcher.scan(RefactorSearcher.java:197)
> at org.jboss.tools.jst.web.kb.refactoring.RefactorSearcher.scan(RefactorSearcher.java:157)
> at org.jboss.tools.jst.web.kb.refactoring.RefactorSearcher.scan(RefactorSearcher.java:155)
> at org.jboss.tools.jst.web.kb.refactoring.RefactorSearcher.findELReferences(RefactorSearcher.java:117)
> at org.jboss.tools.jsf.ui.el.refactoring.RenameMethodParticipant.checkConditions(RenameMethodParticipant.java:72)
> at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:257)
> at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:85)
> at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:121)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
> at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list