Details
-
Enhancement
-
Resolution: Fixed
-
P5
-
17, 21
-
b05
Description
There are 3 implementations of javax.print.DocPrintJob in the JDK:
1. PSStreamPrintJob
2. UnixPrintJob
3. Win32PrintJob
They have Vector fields 'jobListeners', 'attrListeners', 'listenedAttributeSets', but they are always accessed only under synchronized(this) blocks. It means we can safely replace them with ArrayList.
1. PSStreamPrintJob
2. UnixPrintJob
3. Win32PrintJob
They have Vector fields 'jobListeners', 'attrListeners', 'listenedAttributeSets', but they are always accessed only under synchronized(this) blocks. It means we can safely replace them with ArrayList.