<Swing Dev> JDK9 Review Request for JDK-7104635 HTMLEditorKit fails to write down some html files
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Thu Jan 21 01:31:58 UTC 2016
Looks fine.
On 17/12/15 12:31, Rajeev Chamyal wrote:
> Hello,
>
> Gentle reminder for review.
>
> Regards,
> Rajeev Chamyal
>
> -----Original Message-----
> From: Rajeev Chamyal
> Sent: 10 December 2015 22:42
> To: Sergey Bylokhov; Alexander Scherbatiy; swing-dev at openjdk.java.net; Prasanta Sadhukhan
> Subject: RE: <Swing Dev> JDK9 Review Request for JDK-7104635 HTMLEditorKit fails to write down some html files
>
> Hello Sergey,
>
> Thanks for the review.
> indentLevel is decremented in AbstractWriter :: incrIndent method as well.
> Here also we have a check before decrementing indentLevel.
>
> Regards,
> Rajeev Chamyal
>
> -----Original Message-----
> From: Sergey Bylokhov
> Sent: 09 December 2015 01:49
> To: Rajeev Chamyal; Alexander Scherbatiy; swing-dev at openjdk.java.net; Prasanta Sadhukhan
> Subject: Re: <Swing Dev> JDK9 Review Request for JDK-7104635 HTMLEditorKit fails to write down some html files
>
> Hi, Rajeev.
> Did you check another place where it is decremented?
> Also it seems this change in some way contradicts the specification of
> getIndentLevel() method, because it is quite general:
> /**
> * Returns the current indentation level. That is, the number of times
> * <code>incrIndent</code> has been invoked minus the number of times
> * <code>decrIndent</code> has been invoked.
> * @return the current indentation level
> * @since 1.3
> */
>
> it is unclear can it return negative value or not.
>
> On 26/11/15 11:36, Rajeev Chamyal wrote:
>> Hello All,
>>
>> Please review the following fix for Jdk9:
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-7104635
>>
>> Webrev: http://cr.openjdk.java.net/~rchamyal/7104635/webrev.00/
>>
>> Issue: If the minimized HTML has spaces the writing is failing with
>> index out of bounds exception.
>>
>> Cause: The AbstractWriter::indent method is passing negative length of
>> indentChars to writer.
>>
>> Fix: Added checks for negative value while decrementing the
>> AbstractWriter::indentlevel.
>>
>> Regards,
>>
>> Rajeev Chamyal
>>
>
>
> --
> Best regards, Sergey.
>
--
Best regards, Sergey.
More information about the swing-dev
mailing list