[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9233) Exception in log while quick editing a file

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Jun 23 17:51:23 EDT 2011


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

Viacheslav Kabanovich commented on JBIDE-9233:
----------------------------------------------

Theoretically, manual delete of method may be done by user exactly when validator has just computed method location and is about to create the marker. It seems that editor does not prevent user from doing that. 
I think we need to implement some checks that would prevent logging in cases when we cannot prevent working with out-of-date model.

> Exception in log while quick editing a file
> -------------------------------------------
>
>                 Key: JBIDE-9233
>                 URL: https://issues.jboss.org/browse/JBIDE-9233
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>    Affects Versions: 3.3.0.M3
>            Reporter: Lukas Jungmann
>            Assignee: Viacheslav Kabanovich
>            Priority: Critical
>             Fix For: 3.3.0.M3
>
>         Attachments: ide.log
>
>
> I have created method 
> @Inject
> public String getX( @Named String a) { return a; }
> which was the last method in a class file.
> Then I manually reformatted it to 
> @Inject
> public String getX( 
> @Named 
> String a) { return a; }	}
> with 10 empty lines instead of 1 left here for readability.
> Then I deleted each set of spaces by selecting it all and using Delete button.
> Finally, I started quickly repeat Undo-Save-Redo-Save with fast keys. Several rounds resulted in the exception found in ide's log.
> That kind of intensive 'work' may result in other exceptions as well.

--
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