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

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 26
    • Component/s: 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}.
      

            Assignee:
            Philip Race
            Reporter:
            Philip Race
            Prasanta Sadhukhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: