RFR: 8328953 : JEditorPane.read throws ChangedCharSetException
Tejesh R
tr at openjdk.org
Tue Mar 26 11:29:36 UTC 2024
On Thu, 25 Jan 2024 11:11:47 GMT, rjolly <duke at openjdk.org> wrote:
> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources.
Verified the fix with the shared test (regression test from [JDK-8146319](https://bugs.openjdk.org/browse/JDK-8146319)), its working fine.
-------------
PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1959906644
More information about the client-libs-dev
mailing list