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 683F610E9A for ; Tue, 25 Mar 2014 15:13:31 +0000 (UTC) Received: (qmail 42705 invoked by uid 500); 25 Mar 2014 15:13:31 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 42504 invoked by uid 500); 25 Mar 2014 15:13:27 -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 42496 invoked by uid 99); 25 Mar 2014 15:13:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 15:13:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [5.148.180.21] (HELO kalnich2.nine.ch) (5.148.180.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 15:13:17 +0000 Received: from [192.168.42.191] (unknown [213.55.184.177]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by kalnich2.nine.ch (Postfix) with ESMTPSA id 913EE16008E for ; Tue, 25 Mar 2014 15:12:55 +0000 (UTC) Message-ID: <1395752725.10953.18.camel@ubuntu> Subject: Re: Java 1.5 -> 1.6 or 1.7? was Re: java 1.5? From: Oleg Kalnichevski To: HttpComponents Project In-Reply-To: <20140325114800.GA3447@localhost.yandex.net> References: <1379157734.21618.11.camel@ubuntu> <-1205251862486749141@unknownmsgid> <1379163630.21618.12.camel@ubuntu> <20140325114800.GA3447@localhost.yandex.net> Content-Type: text/plain; charset="UTF-8" Date: Tue, 25 Mar 2014 14:05:25 +0100 Mime-Version: 1.0 X-Mailer: Evolution 3.8.4-0ubuntu1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2014-03-25 at 15:48 +0400, Dmitry Potapov wrote: > Gentlemen, > > Have you came to any conclusion concerning this? > Currently AbstractMultiworkerIOReactor.execute(...) has finally block which > calls doShutdown() which can throw exception itself (see HTTPCORE-376), so > all information about current exception will be lost. I/O reactors are complex beasts. If things go sideways, there can be multiple exceptions in multiple places. I am not sure suppressed exceptions introduced in Java 1.7 would help us much here. For that reason the standard I/O reactors maintain an audit log. Suppressed exceptions should be logged there. Oleg > One of the ways to fix this and have information concerning both exception is > to use suppressed exceptions idiom implemented in Java 7 (probably with > conjunction with try-with-resources), so I wish to know is it allowed to use > Java 7 features in future patches. > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org