RFR: 8166050: partialArray is not created in javax.swing.text.html.parser.NPrintWriter.println(...) method
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Feb 3 07:07:27 UTC 2022
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.
-------------
Commit messages:
- 8166050: partialArray is not created in javax.swing.text.html.parser.NPrintWriter.println(...) method
Changes: https://git.openjdk.java.net/jdk/pull/7332/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7332&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8166050
Stats: 40 lines in 1 file changed: 0 ins; 40 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/7332.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/7332/head:pull/7332
PR: https://git.openjdk.java.net/jdk/pull/7332
More information about the client-libs-dev
mailing list