persistence@glassfish.java.net

Re: empty NamedQueries annotation?

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Wed, 13 Sep 2006 12:14:55 +0530

Its not a very important warning to report as empty NamedQueries does
not affect any part of the program.

Thanks,
Sahoo
Rochelle Raccah wrote:
> Thanks. I guess we'll let Sahoo tell us if useless annotations is the
> kind of thing the verifier should warn about.
>
> Rochelle
>
> Marina Vatkina wrote:
>> It's legal, so definitely not an error, but useless.
>>
>> -marina
>>
>> Rochelle Raccah wrote:
>>
>>> I just filed NetBeans bug
>>> <http://www.netbeans.org/issues/show_bug.cgi?id=84488>
>>>
>>> Is an empty NamedQueries annotation allowed?
>>>
>>> Should it be caught by the verifier as a warning or error?
>>>
>>> Thanks,
>>> Rochelle