Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 85000 invoked from network); 9 Oct 2006 16:05:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 16:05:45 -0000 Received: (qmail 11989 invoked by uid 500); 9 Oct 2006 16:05:42 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 11885 invoked by uid 500); 9 Oct 2006 16:05:42 -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 11873 invoked by uid 99); 9 Oct 2006 16:05:41 -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 09:05:41 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 216.86.168.178 is neither permitted nor denied by domain of geir@pobox.com) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 09:05:40 -0700 Received: from [172.27.173.129] (unknown [66.194.95.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 45B1A51927 for ; Mon, 9 Oct 2006 12:05:18 -0400 (EDT) Message-ID: <452A7342.5050502@pobox.com> Date: Mon, 09 Oct 2006 12:05:22 -0400 From: "Geir Magnusson Jr." Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [testing][kernel.tests] j.l.Thread test fails on HARMONY-1582 References: <8ce6aa550610090856y9c64de7s7d123e8ebf73dc67@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok - I just committed 1582. Lets build on it... can someone test on winxp? I'll get to it in a bit, but would be happy to know sooner than later. Evgueni Brevnov wrote: > 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 > --------------------------------------------------------------------- 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