JDK-8221412 : lookupPrintServices() does not always update the list of Windows remote printers
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,11,12,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2019-03-25
  • Updated: 2020-01-13
  • Resolved: 2019-03-28
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 7 JDK 8 Other
11.0.4-oracleFixed 13 b15Fixed 7u241Fixed 8u212Fixed openjdk8u222Fixed
Related Reports
Relates :  
Relates :  
Description
JDK-8153732 has provided the mechanism for updating the list of printers returned by PrintServiceLookup.lookupPrintServices(). Yet it does not work in some cases.

Consider the following scenario. When the JVM starts, there are no remote printers. The user adds a remote printer.  PrintServiceLookupProvider.RemotePrinterChangeListener triggers a call to PrintServiceLookupProvider.getRemotePrintersNames which correctly sees the new printer. At the same time, it does not update the cached list printers.
Comments
8u backport Webrev: http://cr.openjdk.java.net/~zgu/JDK-8221412-8u/webrev.00/
25-05-2019

Fix Request: I would like to backport this change to openjdk 8u. It is part of the Oracle updates as well. The patch has minor conflicts (copyright years and indents, etc.)
25-05-2019

Fix Request: This issue needs to be backported to OpenJDK 11.0.4. Patch applies cleanly and successfully runs through SAP regression tests.
07-05-2019