JDK-8241829 : Cleanup the code for PrinterJob on windows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 11,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2020-03-30
  • Updated: 2021-05-19
  • Resolved: 2020-04-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 15 JDK 7 JDK 8 Other
11.0.12-oracleFixed 13.0.8Fixed 15 b19Fixed 7u311Fixed 8u301Fixed openjdk8u302Fixed
Related Reports
Relates :  
Relates :  
Description
There is some unused code that might be removed.

We always pass NULL to the notifyFirstPrinterChange as a
name of the printer, so we can remove the code which expects
a non-null value:
http://cr.openjdk.java.net/~serb/8241829/webrev.00

Comments
Fix request (13u) I'd like to port it to jdk13u, too. The regular nightly testing runs OK. Applies clean.
19-05-2021

Fix Request (8u): Backport to 8u requested because it is a part of 8u301-oracle. Review approval: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-May/013793.html
07-05-2021

Fix Request (11u) Should get backported for parity with 11.0.12-oracle. Applies cleanly.
15-03-2021

URL: https://hg.openjdk.java.net/jdk/jdk/rev/e101dba52342 User: psadhukhan Date: 2020-04-11 05:04:11 +0000
11-04-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/e101dba52342 User: serb Date: 2020-04-08 09:05:29 +0000
08-04-2020

It looks to me as if all this code was added to fix https://bugs.openjdk.java.net/browse/JDK-4744405 None of it looks to have changed since that JDK 6 fix which pre-dates open source + mercurial
02-04-2020