Integrated: 8166050: partialArray is not created in javax.swing.text.html.parser.NPrintWriter.println(...) method
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Mon Feb 7 04:51:11 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.
This pull request has now been integrated.
Changeset: 5dfff740
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/5dfff7406ef3dc37a77ce9545f6f56c49b41e466
Stats: 40 lines in 1 file changed: 0 ins; 40 del; 0 mod
8166050: partialArray is not created in javax.swing.text.html.parser.NPrintWriter.println(...) method
Reviewed-by: prr
-------------
PR: https://git.openjdk.java.net/jdk/pull/7332
More information about the client-libs-dev
mailing list