Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8368577

PrintJob.getGraphics() does not specify behavior after PrintJob.end()

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • client-libs
    • None
    • minimal
    • Documenting existing behaviour. No code change.
    • Java API
    • SE

      Summary

      Specify that after java.awt.PrintJob.end() has been called, java.awt.PrintJob.getGraphics() will return null.

      Problem

      It has always been the behaviour that after PrintJob.end() has been called, PrintJob.getGraphics() will return null, but this has never been documented.

      Solution

      Update the specification accordingly.

      Specification

      Add the following text to the method

       public Graphics java.awt.PrintJob.getGraphics();
      
      +     * If {@code PrintJob.end()} has been called, this method will
      +     * return {@code null}.

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: