On Tue, 19 Sep 2023 21:10:41 GMT, Joe Wang <jo...@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.

Marked as reviewed by lancea (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/15828#pullrequestreview-1638204539

Reply via email to