Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 32464 invoked from network); 20 Mar 2009 05:38:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 05:38:36 -0000 Received: (qmail 36829 invoked by uid 500); 20 Mar 2009 05:38:34 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 36740 invoked by uid 500); 20 Mar 2009 05:38:34 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 36729 invoked by uid 99); 20 Mar 2009 05:38:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 22:38:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of flamefew@gmail.com designates 209.85.198.244 as permitted sender) Received: from [209.85.198.244] (HELO rv-out-0708.google.com) (209.85.198.244) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 05:38:28 +0000 Received: by rv-out-0708.google.com with SMTP id l33so947937rvb.30 for ; Thu, 19 Mar 2009 22:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=j5fWSkMEnICbIZELIVKNXkjvXow8SNXGWLpoIpI1ng0=; b=JBwcmFOeNLXwS1xm5Dg1uF9RDcB7Fi3sR0GD6rYWggjCY5cbng7AvDQL20lKSubT1v UiUMq7B2pz8Ufxlj9MmBkRT3z2O4epqpxYHu8sh6P+72+6xwkEzmdJUMFI+/7TD99u9u b5Ctw+wMfU2HACeC6JkYVZbIGDjbZxd2YXhAo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=vIS2XpRMQWKQjtDkkoNuf6mSu73fj794P8erf9IXIexC48qLdXvad2D8i2gbkKtH0d oZJIiepbN9+uBDvLGQweYGVWAn1bmx7lDMEe8c6LedoXtiw6HDvycnKWfY2phU98eApf vTcplEUYncv6DR3QRdh659Ah5Za6np+9O69O0= MIME-Version: 1.0 Received: by 10.141.85.13 with SMTP id n13mr1165359rvl.102.1237527487808; Thu, 19 Mar 2009 22:38:07 -0700 (PDT) In-Reply-To: <25aac9fc0903180851n7c8c6875waeea71313ce6696d@mail.gmail.com> References: <25aac9fc0903180851n7c8c6875waeea71313ce6696d@mail.gmail.com> Date: Thu, 19 Mar 2009 22:38:07 -0700 Message-ID: <31cc37360903192238u13424739o96beedb5d83451cd@mail.gmail.com> Subject: Re: [LANG] 3.0 JCIP Annotations From: Henri Yandell To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org +0 on the idea (tending to +1 with better understanding of the value). I've not used jcip-annotations, but it seems like a good thing to depend upon. Shared concerns with thread: * Adding a dependency is wince-worthy, but I agree with you on it being akin to JUnit and not runtime. We should have confidence in this area and we can beat up on Maven if there are issues in the site. * Java 7 - if these went in would it be painful in any way? Presumably they wouldn't be in java.lang.*. Just raising the 'what would like look like then?' flag. Can you show what source, javadoc, site etc would look like for some example classes? On Wed, Mar 18, 2009 at 8:51 AM, sebb wrote: > I've added JCIP annotations jar to the POM, but not started adding any > actual annotations yet. > > The idea would be to annotate every class as one of > > @Immutable > @ThreadSafe > @NotThreadSafe > > These annotation appear in the Javadoc output in the class description. > > Also, for objects that need synchronization to ensure thread safety, > add the annotation > > @GuardedBy > > Are there any objections to proceeding with this? > > It's probably easiest to deal with @Immutable first, then @ThreadSafe. > > If no annotation is present, then the user _should_ assume that the > class is @NotThreadSafe, but I think it would be better to always have > an annotation so that it's clear it has not been accidentally left > off. > > WDYT? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org