Hi,
Just a thought, but is this not a generic issue with all IoC
containers, not just EJB3?
Chris Nappin.
-----Original Message-----
From: findbugs-discuss-bounces@xxxxxxxxxx
[mailto:findbugs-discuss-bounces@xxxxxxxxxx] On Behalf Of Sven Reimers
Sent: 15 November 2006 15:48
To: findbugs-discuss@xxxxxxxxxx
Subject: Re: [FB-Discuss] Need help: which annotations mark fields that
mightbe set by EJB3?
Hm,
javax.persistence.* (JPA) can be used outside of EJB - so maybe a
better name for the detector?
-Sven
On 11/15/06, Bill Pugh <pugh@xxxxxxxxxx> wrote:
> Can someone who understands EJB3 help me out?
>
> In classes that are marked with EJB3 annotations,
> the EJB container will automatically set some of the fields.
>
> I need to take this into account in the findbugs checker for unwritten
> fields.
>
> At the moment, I've mark as an EJB field anything annotated with
> with a javax.annotation.*, javax.ejb.* or javax.persistence.*
> annotation,
> and never treat an EJB field as an unwritten field.
>
> This is probably overkill, and it may not be sufficient. Are there
> annotations
> on a class or field that cause other fields to be set by EJB3.
>
> Please advise,
>
> Thanks,
>
> Bill
>
>
> _______________________________________________
> Findbugs-discuss mailing list
> Findbugs-discuss@xxxxxxxxxxxxxxxxxx
> http://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@xxxxxxxxxxxxxxxxxx
http://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
CONFIDENTIALITY & PRIVILEGE NOTICE
This e-mail is confidential to its intended recipient. It may also be
privileged. Neither the confidentiality nor any privilege attaching to this
e-mail is waived lost or destroyed by reason that it has been mistakenly
transmitted to a person or entity other than its intended recipient. If you are
not the intended recipient please notify us immediately by telephone or fax at
the numbers provided above or e-mail by Reply To Author and return the printed
e-mail to us by post at our expense. We believe, but do not warrant, that this
e-mail and any attachments are virus-free, but you should check. We may monitor
traffic data of both business and personal e-mails. We are not liable for any
opinions expressed by the sender where this is a non-business e-mail. If you do
not receive all the message, or if you have difficulty with the transmission,
please telephone us immediately.
|
|