-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b27
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8328526 | 21.0.4 | Alexandr Scherbatiy | P4 | Resolved | Fixed | b01 |
Calling this sets to false a variable used to track whether attributes have
been initialised.
It does this to get current status of the printer, whether accepting jobs etc.
But it triggers wholesale re-initialisation of everything, including if the prrinter supports color, the media available etc - in fact creating a new instance of CUPSPrinter every time if it is a CUPSPrinter.
This is way too much work and is responsible for the problems described in
JDK-7001133: OutOfMemoryError by CustomMediaSizeName implementation
A specific fix for that may still be merited, but I'd like to address the bigger problem too.
been initialised.
It does this to get current status of the printer, whether accepting jobs etc.
But it triggers wholesale re-initialisation of everything, including if the prrinter supports color, the media available etc - in fact creating a new instance of CUPSPrinter every time if it is a CUPSPrinter.
This is way too much work and is responsible for the problems described in
A specific fix for that may still be merited, but I'd like to address the bigger problem too.
- backported by
-
JDK-8328526 IPPPrintService.getAttributes() causes blanket re-initialisation
- Resolved