Integrated: 8316383: NullPointerException in AbstractSAXParser after JDK-8306632
Joe Wang
joehw at openjdk.org
Thu Sep 21 19:20:47 UTC 2023
On Tue, 19 Sep 2023 21:10:41 GMT, Joe Wang <joehw at openjdk.org> wrote:
> Fix a NPE. The DTD patch (JDK-8306632) moved initialization to factories, for example, for SAXParser, the SecurityManagers are created in the SAXParserFactory impl and passed on to instances of SAXParsers. The (deprecated) XMLReaderFactory however, instantiates SAXParsers directly, thus without initializing the SecurityManagers. This patch checks the condition and creates them if they have not already been constructed.
>
> Test: XML tests passed.
This pull request has now been integrated.
Changeset: 4e571775
Author: Joe Wang <joehw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4e5717754ab3009c75869bf9f228820adb86dd98
Stats: 78 lines in 3 files changed: 65 ins; 10 del; 3 mod
8316383: NullPointerException in AbstractSAXParser after JDK-8306632
Reviewed-by: lancea, naoto
-------------
PR: https://git.openjdk.org/jdk/pull/15828
More information about the core-libs-dev
mailing list