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 CDF2F1006E for ; Thu, 15 Aug 2013 21:50:16 +0000 (UTC) Received: (qmail 40522 invoked by uid 500); 15 Aug 2013 21:50:16 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 39517 invoked by uid 500); 15 Aug 2013 21:50:08 -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 39387 invoked by uid 99); 15 Aug 2013 21:49:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Aug 2013 21:49:59 +0000 Date: Thu, 15 Aug 2013 21:49:58 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1387) Replace URICollection with List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13741532#comment-13741532 ] Oleg Kalnichevski commented on HTTPCLIENT-1387: ----------------------------------------------- Sebastian, I am also not sure this is warranted. Java collections are not type safe at runtime due to type erasure. If we start documenting that we might as well consider warning people about risks of getting abducted by green men from Mars. There is always a potential risk of a type cast exception given that HttpContext is effectively a map of untyped objects. Oleg > Replace URICollection with List > ------------------------------------ > > Key: HTTPCLIENT-1387 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1387 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpClient > Affects Versions: 4.3 Beta2 > Reporter: James Leigh > Labels: patch > Fix For: 4.3 Final > > Attachments: HTTPCLIENT-1387.patch > > > The 4.3 API should use List interface (as opposed to URICollection) for redirect locations, while also providing 4.2 RedirectLocations binary compatibility. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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