From dev-return-38552-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Thu Nov 26 15:09:00 2009 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 11135 invoked from network); 26 Nov 2009 15:09:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Nov 2009 15:09:00 -0000 Received: (qmail 18057 invoked by uid 500); 26 Nov 2009 15:08:59 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 17969 invoked by uid 500); 26 Nov 2009 15:08:59 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 17958 invoked by uid 99); 26 Nov 2009 15:08:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 15:08:59 +0000 X-ASF-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 194.196.100.162 is neither permitted nor denied by domain of mark.hindess@googlemail.com) Received: from [194.196.100.162] (HELO mtagate2.uk.ibm.com) (194.196.100.162) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 15:08:56 +0000 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id nAQF8ZhW027563 for ; Thu, 26 Nov 2009 15:08:35 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAQF8Zts635026 for ; Thu, 26 Nov 2009 15:08:35 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id nAQF8ZT2002044 for ; Thu, 26 Nov 2009 15:08:35 GMT Received: from anaheim.local (dhcp-9-20-183-161.hursley.ibm.com [9.20.183.161]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id nAQF8ZsU002041 for ; Thu, 26 Nov 2009 15:08:35 GMT Message-Id: <200911261508.nAQF8ZsU002041@d06av02.portsmouth.uk.ibm.com> X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3 In-reply-to: <4B0E8E27.50604@gmail.com> References: <4B0BEE4F.1080601@gmail.com> <4B0C05A2.5020501@googlemail.com> <4B0E6F23.8070009@googlemail.com> <200911261245.nAQCjwbj010629@d06av01.portsmouth.uk.ibm.com> <200911261314.nAQDEYXf004654@d06av04.portsmouth.uk.ibm.com> <4B0E8E27.50604@gmail.com> Comments: In-reply-to Tim Ellison message dated "Thu, 26 Nov 2009 14:18:15 +0000." From: Mark Hindess To: dev@harmony.apache.org Subject: Re: [testing] M12 testing on Windows x86 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 26 Nov 2009 15:08:35 +0000 In message <4B0E8E27.50604@gmail.com>, Tim Ellison writes: > > On 26/Nov/2009 13:14, Mark Hindess wrote: > > In message <200911261245.nAQCjwbj010629@d06av01.portsmouth.uk.ibm.com>, > > Mark Hindess writes: > >> In message <4B0E6F23.8070009@googlemail.com>, Oliver Deakin writes: > >>> I have updated this morning and I only see 1 consistent failure on > >>> Windows x86 now: > >>> > >>> Name Tests > >>> Errors Failures > >>> javax.swing.text.html.HTMLDocument_Reader_ActionsTest > >>> 58 1 1 > >>> > >>> The bad news is that running this test against the M11 build passes > >>> for me, so it's something we have broken since the last milestone. I > >>> have created HARMONY-6392 for these failures. > >> I see this on Linux too. I'm running a binary chop to try to narrow > >> down the breaking commit. It is currently testing r822219 which fails > >> between r820621 (which passes) and r823576 (which fails). > > > > It has finished running now and shows the bad commit as: > > > > r822846 | tellison | 2009-10-07 19:54:08 +0100 (Wed, 07 Oct 2009) > > Apply part of patch from HARMONY-6346 ([classlib] [archive] Several > > archive bugfixes and optimizations) > > Thanks Mark. It's not immediately clear how that is connected to the > failure, so running debug now. Indeed. > The simple reproducer is: > > public void test() throws IOException, BadLocationException { > > StringReader sr = new StringReader("
line1\n"
>                 + "line2 \n line3"
>                 + "line3
line4 \n line4"); > > HTMLDocument doc = new HTMLDocument(); > new HTMLEditorKit().read(sr, doc, 0); > > String range = doc.getText(26, 11); > assertEquals("line4 line4", range); > } > > > which passes on the RI, but on Harmony the range is returned as > "\nline4 line" While trying to find a smaller reproducer I noticed that: new HTMLEditorKit().read(new StringReader( "
"), doc, 0);

throws a NullPointerException[0] on r822846 but not before that commit.
I assume it is related but of course it might not be.

Regards,
 Mark.

[0] ...

Exception in thread "main" java.lang.NullPointerException
        at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertEndTag(DefaultStyledDocument.java:602)
        at javax.swing.text.DefaultStyledDocument$ElementBuffer.performSpecs(DefaultStyledDocument.java:341)
        at javax.swing.text.DefaultStyledDocument$ElementBuffer.create(DefaultStyledDocument.java:327)
        at javax.swing.text.DefaultStyledDocument.create(DefaultStyledDocument.java:1206)
        at javax.swing.text.html.HTMLDocument.access$2(HTMLDocument.java:1)
        at javax.swing.text.html.HTMLDocument$HTMLReader.flushImpl(HTMLDocument.java:864)
        at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:689)
        at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:737)