[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7669) Quick fix for "Non-static method <method>() of a session bean class <class> is annotated @Produces, and the method is not a business method of the session bean [JSR-299 §3.3.2]" error marker

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Thu Nov 25 11:21:30 EST 2010


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

Alexey Kazakov commented on JBIDE-7669:
---------------------------------------

>> What does the validator actually validates ?
If there is any @Local interface then we check if the method defined there. If there is no any @Local interface then we check if the method is public. Well, it seems that we should improve it.

1. If 0 interfaces and the method is public - it's a business method (already implemented)
2. If N interfaces and no @Local - the method should be defined at least in one implemented interface. Otherwise it's not a business method (should implement this rule)
3. If N interfaces and Y @Local's, the class is not annotated @LocalBean - should check the method in every @Local and mark the method if it's not implementation of any @Local (mostly implemented, but we should check @LocalBean)

> Quick fix for "Non-static method <method>() of a session bean class <class> is annotated @Produces, and the method is not a business method of the session bean [JSR-299 §3.3.2]" error marker
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-7669
>                 URL: https://jira.jboss.org/browse/JBIDE-7669
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: cdi (jsr-299)
>            Reporter: Daniel Azarov
>            Assignee: Daniel Azarov
>              Labels: new_and_noteworthy
>             Fix For: 3.3.x
>
>
> This quick fix should offer to delete @Produces annotation

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