Re: RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML [v3]

2021-06-25 Thread Joe Wang
On Wed, 23 Jun 2021 07:34:06 GMT, Masanori Yano  wrote:

>> Hi all,
>> 
>> Could you please review the 8268457 bug fixes?
>> 
>> The problem is that ToHTMLStream applies processing for non-surrogate pairs 
>> to the surrogate pair.
>> This fix changes the processing for non-surrogate pairs to the else 
>> condition.
>
> Masanori Yano has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   remove unnecessally comments and add eof line

Hi Masanori, you may now type /integrate in a new comment when you're ready. 
I'll then sponsor your change. Thanks.

-

PR: https://git.openjdk.java.net/jdk/pull/4474


Re: RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML [v3]

2021-06-23 Thread Joe Wang
On Wed, 23 Jun 2021 07:34:06 GMT, Masanori Yano  wrote:

>> Hi all,
>> 
>> Could you please review the 8268457 bug fixes?
>> 
>> The problem is that ToHTMLStream applies processing for non-surrogate pairs 
>> to the surrogate pair.
>> This fix changes the processing for non-surrogate pairs to the else 
>> condition.
>
> Masanori Yano has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   remove unnecessally comments and add eof line

Marked as reviewed by joehw (Reviewer).

Thanks for the update. A full test passed.

-

PR: https://git.openjdk.java.net/jdk/pull/4474


Re: RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML [v3]

2021-06-23 Thread Iris Clark
On Wed, 23 Jun 2021 07:34:06 GMT, Masanori Yano  wrote:

>> Hi all,
>> 
>> Could you please review the 8268457 bug fixes?
>> 
>> The problem is that ToHTMLStream applies processing for non-surrogate pairs 
>> to the surrogate pair.
>> This fix changes the processing for non-surrogate pairs to the else 
>> condition.
>
> Masanori Yano has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   remove unnecessally comments and add eof line

Marked as reviewed by iris (Reviewer).

-

PR: https://git.openjdk.java.net/jdk/pull/4474


Re: RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML [v3]

2021-06-23 Thread Naoto Sato
On Wed, 23 Jun 2021 07:34:06 GMT, Masanori Yano  wrote:

>> Hi all,
>> 
>> Could you please review the 8268457 bug fixes?
>> 
>> The problem is that ToHTMLStream applies processing for non-surrogate pairs 
>> to the surrogate pair.
>> This fix changes the processing for non-surrogate pairs to the else 
>> condition.
>
> Masanori Yano has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   remove unnecessally comments and add eof line

Looks good. Thank you for the fix!

-

Marked as reviewed by naoto (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/4474


Re: RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML [v3]

2021-06-23 Thread Lance Andersen
On Wed, 23 Jun 2021 07:34:06 GMT, Masanori Yano  wrote:

>> Hi all,
>> 
>> Could you please review the 8268457 bug fixes?
>> 
>> The problem is that ToHTMLStream applies processing for non-surrogate pairs 
>> to the surrogate pair.
>> This fix changes the processing for non-surrogate pairs to the else 
>> condition.
>
> Masanori Yano has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   remove unnecessally comments and add eof line

The updated changes look reasonable to me.

-

Marked as reviewed by lancea (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/4474


Re: RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML [v3]

2021-06-23 Thread Masanori Yano
On Fri, 18 Jun 2021 21:09:39 GMT, Joe Wang  wrote:

>> src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToHTMLStream.java
>>  line 1454:
>> 
>>> 1452: writer.write(ch);  // no escaping in this case
>>> 1453: }
>>> 1454: else
>> 
>> I was suggesting removing the entire comment-out block if it is not needed 
>> (and confusing), but I will defer the decision to Joe.
>
> I agree. It's very obsolete. The comment-out block from line 1445 to 1454 can 
> be removed.

I was mistaken. I deleted the entire comment.

-

PR: https://git.openjdk.java.net/jdk/pull/4474


Re: RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML [v3]

2021-06-23 Thread Masanori Yano
> Hi all,
> 
> Could you please review the 8268457 bug fixes?
> 
> The problem is that ToHTMLStream applies processing for non-surrogate pairs 
> to the surrogate pair.
> This fix changes the processing for non-surrogate pairs to the else condition.

Masanori Yano has updated the pull request incrementally with one additional 
commit since the last revision:

  remove unnecessally comments and add eof line

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4474/files
  - new: https://git.openjdk.java.net/jdk/pull/4474/files/d5792a87..1183c2f6

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=4474=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=4474=01-02

  Stats: 14 lines in 4 files changed: 0 ins; 11 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4474.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4474/head:pull/4474

PR: https://git.openjdk.java.net/jdk/pull/4474