Invalid Message-Beans Modifiers

This query finds all the message-beans that have incorrect class modifiers.

Pre-packaged Query

Query name="Semmle/StyleChecks/J2EE/Message-Bean/All message-beans must be public, not final and not abstract "

Reports all Message-Bean types that are not public or that are final or abstract.

from MessageBean mbean
where not(mbean.hasModifier("public")) or
mbean.hasModifier("final") or
mbean.hasModifier("abstract") select mbean, mbean.toString() + " message-bean must be" + " public, not final and not abstract"

References

Enterprise JavaBeans 2.1 - Specification, section 15.7.2

Digg!Reddit!Del.icio.us!Facebook!Slashdot!Technorati!StumbleUpon!Ma.gnolia!

Comments
Only registered users can write comments!
 
< Prev   Next >