[jbosstools-issues] [JBoss JIRA] (JBIDE-11492) When inserting methods with parameters, CA sets cursor incorrectly

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Wed Apr 18 09:18:18 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-11492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12685264#comment-12685264 ] 

Victor Rubezhny commented on JBIDE-11492:
-----------------------------------------

JUnit Test Case is added for the issue: org.jboss.tools.jsf.jsp.ca.test.CAELApplyMethodProposalTest
                
> When inserting methods with parameters, CA sets cursor incorrectly
> ------------------------------------------------------------------
>
>                 Key: JBIDE-11492
>                 URL: https://issues.jboss.org/browse/JBIDE-11492
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI, jsp/jsf/xml source editing
>    Affects Versions: 3.3.0.Beta1
>            Reporter: Viacheslav Kabanovich
>            Assignee: Victor Rubezhny
>            Priority: Minor
>             Fix For: 3.3.0.Beta3
>
>
> EXECUTE: Create CDI producer field bean
> {code}
> @Produces
> @Named("abc")
> String s;
> {code}
> EXECUTE: Write EL in a page
> {code}
> #{abc.substring(1).}
> {code}
> EXECUTE: Call CA after the last dot and select substring(int).
> ASSERT: Cursor is located as abc.substring(1).substring(|)
> FAILURE: Cursor is located as abc.substring(|1).substring()
> By the way, this feature is missing in Java sources. Is it possible to implement it there to let CA have everywhere the same logic?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list