RFR: 8166050: partialArray is not created in javax.swing.text.html.parser.NPrintWriter.println(...) method

Phil Race prr at openjdk.java.net
Sat Feb 5 18:14:12 UTC 2022


On Thu, 3 Feb 2022 06:59:35 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> The uninitialized "partialArray" in NPrintWriter.println() can cause NPE in System.arraycopy . 
> But it is seen that NPrintWriter class embedded in TagStack class file cannot be used by application as it is not a public class and not an inner class too and also there's no object of it created in TagStack class to access NPrintWriter and there's no instances of accessing NPrintWriter in jdk.
> So, it seems prudent to remove instead of fixing this ununsed, unaccessible class . Build and jtreg tests are ok.

Marked as reviewed by prr (Reviewer).

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

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



More information about the client-libs-dev mailing list