RFR: 8268457: XML Transformer outputs Unicode supplementary character incorrectly to HTML
Naoto Sato
naoto at openjdk.java.net
Wed Jun 16 16:18:45 UTC 2021
On Fri, 11 Jun 2021 12:42:35 GMT, Masanori Yano <myano at openjdk.org> 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.
src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToHTMLStream.java line 1455:
> 1453: }
> 1454: else
> 1455: */
I just wonder the bug was caused by this commenting out, which erroneously removed the `else` here. If the comment-out portion is no longer needed, we could just delete it for good.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4474
More information about the core-libs-dev
mailing list