hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Dillon <m...@embody.org>
Subject Re: JCIP annotations
Date Wed, 18 Mar 2009 14:32:09 GMT
begin sebb quotation:
> It didn't work when I tried it last. Admittedly that was a few months
> ago, and there has just been a new release. But I just tried again
> with the following code:
> 
> import net.jcip.annotations.GuardedBy;
> public class GuardedByTest {
>      @GuardedBy("this")
>      public int count;
>      public synchronized void incCount(){
>          count++;
>      }
>      public int getCount(){
>          return count;
>      }
> }
> 
> Which I would have expected to report some problems. I even tried
> @GuardedBy("that") which IMO should also have triggered a warning.
> 
> This was using the Eclipse plugin, 1.3.8.20090315.
> 
> But perhaps I've missed something.

I agree this should trigger a warning. I've forwarded your message to
the Findbugs folks to find out what the deal is.

-md

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message