Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 81767 invoked from network); 9 Oct 2006 15:59:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 15:59:48 -0000 Received: (qmail 99532 invoked by uid 500); 9 Oct 2006 15:59:45 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 99345 invoked by uid 500); 9 Oct 2006 15:59:44 -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 99334 invoked by uid 99); 9 Oct 2006 15:59:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 08:59:44 -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 evgueni.brevnov@gmail.com designates 66.249.82.233 as permitted sender) Received: from [66.249.82.233] (HELO wx-out-0506.google.com) (66.249.82.233) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 08:59:43 -0700 Received: by wx-out-0506.google.com with SMTP id s13so1730517wxc for ; Mon, 09 Oct 2006 08:59:23 -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=Fe/xtR4LE1m0D1rpPXip8iZd+D4QBgecE6zKChNCdWirw8Lowxk3GLEEpMrIq6FEjG2sPyvp43XDxotrnkZfyqAUn17UCAQFz4/IrVi0i8idKwsMuAxs3yoT/nDCSzMb7WfTfdxkZdsWxLuPhgk7sc8hqGHIiXTSWm+ynZ4/x5Q= Received: by 10.90.83.14 with SMTP id g14mr2753161agb; Mon, 09 Oct 2006 08:59:22 -0700 (PDT) Received: by 10.90.63.14 with HTTP; Mon, 9 Oct 2006 08:59:17 -0700 (PDT) Message-ID: Date: Mon, 9 Oct 2006 22:59:17 +0700 From: "Evgueni Brevnov" To: harmony-dev@incubator.apache.org Subject: Re: [testing][kernel.tests] j.l.Thread test fails on HARMONY-1582 In-Reply-To: <8ce6aa550610090856y9c64de7s7d123e8ebf73dc67@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8ce6aa550610090856y9c64de7s7d123e8ebf73dc67@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok, I see. Then it should be TM problem.... right? On 10/9/06, Nikolay Kuznetsov wrote: > Evgueni, > > according to the spec the thread wait method should throw interrupted > exception even if it was interrupted before call. > > citing from the Object.wait method specification: > "Throws: > > InterruptedException - if another thread interrupted the current > thread before or while the current thread was waiting for a > notification. The interrupted status of the current thread is cleared > when this exception is thrown." > > The same applicable, to the sleep and join methods. > > Thank you. > Nik. > > On 10/9/06, Evgueni Brevnov wrote: > > Hi, > > > > While testing HARMONY-1582 (invocation api) it turned out that one > > kernel test starts to fail with the following message: > > > > There were 3 failures: > > 1) testInterrupt_Joining(java.lang.ThreadTest)junit.framework.AssertionFailed > > Error: joining thread has not received the InterruptedException > > at java.lang.ThreadTest.testInterrupt_Joining(ThreadTest.java:1367) > > at java.lang.reflect.VMReflection.invokeMethod(Native Method) > > 2) testInterrupt_Sleeping(java.lang.ThreadTest)junit.framework.AssertionFaile > > dError: sleeping thread has not received the InterruptedException > > at java.lang.ThreadTest.testInterrupt_Sleeping(ThreadTest.java:1390) > > at java.lang.reflect.VMReflection.invokeMethod(Native Method) > > 3) testInterrupt_Waiting(java.lang.ThreadTest)junit.framework.AssertionFailed > > Error: waiting thread has not received the InterruptedException > > at java.lang.ThreadTest.testInterrupt_Waiting(ThreadTest.java:1413) > > at java.lang.reflect.VMReflection.invokeMethod(Native Method) > > > > FAILURES!!! > > Tests run: 89, Failures: 3, Errors: 0 > > > > Short investigation shows that test is invalid. Specifically main > > thread interrupts another thread and expects InterruptedException will > > be thrown while interruptable thread doesn't get to > > joining/sleeping/waiting state yet. > > > > Could somebody fix that.... > > > > Thanks > > Evgueni. > > > > --------------------------------------------------------------------- > > 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 > > > > > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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