RFR: 8368576: PrintJob.getGraphics() does not specify behavior after PrintJob.end()

Sergey Bylokhov serb at openjdk.org
Wed Sep 24 20:48:25 UTC 2025


On Wed, 24 Sep 2025 16:43:13 GMT, Phil Race <prr at openjdk.org> wrote:

> Update the spec. of java.awt.PrintJob.getGraphics() to document long standing behaviour after PrintJob.end() has been called.
> 
> A CSR has been created https://bugs.openjdk.org/browse/JDK-8368577

Does this new statement in the spec covered by any tests? How will it behave if getGraphics is called before end, but the Graphics object is used after end has been called?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27474#issuecomment-3330655809


More information about the client-libs-dev mailing list