Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 743D67F84 for ; Thu, 14 Jul 2011 14:13:26 +0000 (UTC) Received: (qmail 63373 invoked by uid 500); 14 Jul 2011 14:13:26 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 63299 invoked by uid 500); 14 Jul 2011 14:13:25 -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 63282 invoked by uid 99); 14 Jul 2011 14:13:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 14:13:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 14:13:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0207857276 for ; Thu, 14 Jul 2011 14:13:01 +0000 (UTC) Date: Thu, 14 Jul 2011 14:13:01 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: <1929801334.13484.1310652781005.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HTTPCLIENT-866) HttpClient depends on jcip-annotations.jar 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=13065279#comment-13065279 ] Oleg Kalnichevski commented on HTTPCLIENT-866: ---------------------------------------------- An extra external dependency just to re-use whole four annotation classes? I am not sure it is worth the trouble. Oleg > 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 > Fix For: 4.1 Alpha1 > > Attachments: HTTPCLIENT-866.patch > > > 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. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org