[jbosstools-issues] [JBoss JIRA] Issue Comment Edited: (JBIDE-9550) Source editor in JBDS is not highlighting all beans using scopes which must implement serializable

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


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

Alexey Kazakov edited comment on JBIDE-9550 at 8/16/11 1:21 PM:
----------------------------------------------------------------

JSR-299 spec (CDI) doesn't require application scoped beans to be serializable since only session and conversation built-in scopes are passivating capable. Not sure about other specs (JSF, ...).
See JSR-299 6.6.3. Passivating scopes.
So we do as much as we can for validation of passivation capable beans regarding JSR-299 spec.
Maybe some other specs require application scoped beans to be serializable but since CDI validator is responsible only for JSR-299 spec I'm going to reject this issue.


      was (Author: akazakov):
    JSR-299 spec. (CDI) doesn't require application scoped beans to be serializable since only session and conversation built-in scopes are passivating capable. Not sure about other specs (JSF, ...).
See JSR-299 6.6.3. Passivating scopes.
So we do as much as we can for validation of passivation capable beans regarding JSR-299 spec.
Maybe some other specs. requires application scoped beans to be serializable but since CDI validator is responsible only for JSR-299 spec I'm going to reject this issue.

  
> Source editor in JBDS is not highlighting all beans using scopes which must implement serializable
> --------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-9550
>                 URL: https://issues.jboss.org/browse/JBIDE-9550
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi
>    Affects Versions: 3.3.0.M3
>            Reporter: Jaroslav Jankovič
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.M3
>
>
> According to official The Java EE 6 Tutorial in http://download.oracle.com/javaee/6/tutorial/doc/gjbbk.html - "Beans that use session, application, or conversation scope must be serializable, but beans that use request scope do not have to be serializable." However JBDS offers Quick Fix only for beans using session scope, not application or conversation scope. In my opinion, JBDS should highlight beans using these scopes and offer the same Quick Fix wizard as in session scope case.

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