Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 55391 invoked from network); 15 Aug 2009 12:02:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Aug 2009 12:02:38 -0000 Received: (qmail 53308 invoked by uid 500); 15 Aug 2009 12:02:45 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 53245 invoked by uid 500); 15 Aug 2009 12:02:45 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 53235 invoked by uid 99); 15 Aug 2009 12:02:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2009 12:02:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2009 12:02:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 403C5234C1EB for ; Sat, 15 Aug 2009 05:02:15 -0700 (PDT) Message-ID: <1980558259.1250337735262.JavaMail.jira@brutus> Date: Sat, 15 Aug 2009 05:02:15 -0700 (PDT) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Subject: [jira] Commented: (HTTPCLIENT-866) HttpClient depends on jcip-annotations.jar In-Reply-To: <1510228914.1250125034812.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743687#action_12743687 ] Oleg Kalnichevski commented on HTTPCLIENT-866: ---------------------------------------------- It looks like we cannot just fork the damn thing and re-licence it under ASLv2. We either have to remove it entirely or provide our own set of equivalent annotations with SOURCE retention policy --- * Copyright (c) 2005 Brian Goetz and Tim Peierls * Released under the Creative Commons Attribution License * (http://creativecommons.org/licenses/by/2.5) * Official home: http://www.jcip.net * * Any republication or derived work distributed in source code form * must include this copyright and license notice. --- > HttpClient depends on jcip-annotations.jar > ------------------------------------------ > > Key: HTTPCLIENT-866 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-866 > Project: HttpComponents HttpClient > Issue Type: Bug > Affects Versions: 4.0 Final > Environment: javac 1.5.0_19 > Reporter: David Nault > Priority: Critical > > When using Java 5 to compile code that uses HttpClient, jcip-annotations.jar must be in the classpath or else you get a compiler error: > [javac] /path/to/src/SomeFile.java:129: cannot access net.jcip.annotations.GuardedBy > [javac] file net/jcip/annotations/GuardedBy.class not found > [javac] DefaultHttpClient httpclient = new DefaultHttpClient(); > [javac] ^ > With Java 6, you get a bunch of warnings instead. > [javac] org/apache/http/impl/client/AbstractHttpClient.class(org/apache/http/impl/client:AbstractHttpClient.class): warning: Cannot find annotation method 'value()' in type 'net.jcip.annotations.GuardedBy': class file for net.jcip.annotations.GuardedBy not found > This requirement doesn't seem to be documented anywhere, and jcip-annotations.jar is not included in the "httpcomponents-client-4.0-bin-with-dependencies" package. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org