Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 23603 invoked from network); 18 Jul 2006 05:57:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 05:57:40 -0000 Received: (qmail 99470 invoked by uid 500); 18 Jul 2006 05:57:33 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 99430 invoked by uid 500); 18 Jul 2006 05:57:33 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 99419 invoked by uid 99); 18 Jul 2006 05:57:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 22:57:33 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of alexey.v.varlamov@gmail.com designates 66.249.82.205 as permitted sender) Received: from [66.249.82.205] (HELO wx-out-0102.google.com) (66.249.82.205) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 22:57:32 -0700 Received: by wx-out-0102.google.com with SMTP id i26so869542wxd for ; Mon, 17 Jul 2006 22:57:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KKeDTdhZxrRuQGk09Bf+NQgLLTkynPsxGSodyby0AybsRAnMBYEB0wE/XHTSqCB0Om2Hzfqroa6BH6VTbGhNMbxD5IjLy87uO4FolpRUtrM5IwDUD6r9esfatextsvEPzqCvl+Pf/yaGs5JO3zCTS85jjlFeDQy3n0Ah1QeF8NE= Received: by 10.70.27.17 with SMTP id a17mr4257006wxa; Mon, 17 Jul 2006 22:57:11 -0700 (PDT) Received: by 10.70.49.6 with HTTP; Mon, 17 Jul 2006 22:57:11 -0700 (PDT) Message-ID: Date: Tue, 18 Jul 2006 12:57:11 +0700 From: "Alexey Varlamov" To: harmony-dev@incubator.apache.org Subject: Re: Solution on Harmony-815 (was Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.) In-Reply-To: <44BC3DF6.8020306@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4d0b24970607131957ga194d05p18358f2a1448ddac@mail.gmail.com> <906dd82e0607132141k7224c88kaa0ccc4b4260a292@mail.gmail.com> <5c8e69f0607160640r257ad50aq37f6935859292a8a@mail.gmail.com> <44BB7E04.6080609@gmail.com> <4F12B5A6-0B20-4045-9FD8-AD6925FEB8DC@guglhupf.net> <44BC3DF6.8020306@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N IMHO, throwing a subclass certainly fits to specification and can hardly break compatibility with RI. I consider this is the proper workaround for now. Just my $0.02 :) -- Alexey Varlamov > > In this case, I guess if we set the cause to null when catching the > SocketException will properly solve the problem. However it seems > difficult as Throwable.initCause() can be called only once. > > If throwing a subclass may also break compatibility guideline, I still > suggest return value, though it may break the current > infrastructure(currently, all errors throw exception), it is still easy > to deal with, only some of operation, read/write, require a little > change, and we no longer need "try...catch" in Java code > > BTW, I find the code shall also deal with InterruptIOException. --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org