[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-9564) Errors in CDICoreValidator when editing Java during validation of previous saved state.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Tue Aug 23 16:11:17 EDT 2011


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

Alexey Kazakov resolved JBIDE-9564.
-----------------------------------

      Assignee: Viacheslav Kabanovich  (was: Alexey Kazakov)
    Resolution: Done


fixed

> Errors in CDICoreValidator when editing Java during validation of previous saved state.
> ---------------------------------------------------------------------------------------
>
>                 Key: JBIDE-9564
>                 URL: https://issues.jboss.org/browse/JBIDE-9564
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi
>    Affects Versions: 3.3.0.M2
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.3.0.M3
>
>
> Now Java Model updates on the fly at source editing, whereas CDI validator works with CDI model built with the last saved state. That means that some objects of Java model stored in CDI model may get obsolete while validation is in progress. 
> One of possible cases:
> EXECUTE: Add producer to a bean
> {code}
> @Produces
> String getName(String s) {
>     return null;
> }
> {code}
> EXECUTE: Select and delete argument 'String s'.
> EXECUTE: Use Ctrl+Z Ctrl+S Ctrl+Y Ctrl+S several times.
> FAILURE: Java Model Exception 'getName(String) ... does not exist'.
> Proposed fix. As we will keep to updating CDI model during build of last saved state, CDI model objects need to be able to answer if they exist or not, and validator and other clients should check existence before accessing the object.

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