RFR: 8273370: Preferences.exportSubtree() generates invalid XML if value contains control char

Naoto Sato naoto at openjdk.java.net
Thu Mar 24 20:44:42 UTC 2022


On Thu, 24 Mar 2022 18:21:05 GMT, Joe Wang <joehw at openjdk.org> wrote:

> The issue was caused by the difference on handling control characters between the parser and serializer. The parser rejected control characters while the serializer converted them to NCRs. The fix is for the later to be aligned with the parser, reporting error upon encountering control characters. 
> 
> Mach5 tier2 passed.

So the fix is now to throw an exception on serialization. Would there be any need to let the users know as it becomes a stricter behavior?

-------------

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


More information about the core-libs-dev mailing list