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

[Printing, Mac] Printing hangs if printing more than specified number of pages

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u5
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Environment:

      OS X Mavericks
      Same behaviour on 8u5 and 8u20b14

      Description

      This code hangs forever on the last line.

      The result should probably be an exception since one is trying to print after the last page.

      PrinterJob pj = PrinterJob.createPrinterJob();
      pj.getJobSettings().setPageRanges(new PageRange(1, 1));
      pj.printPage(new Label("Page 1"));
      pj.printPage(new Label("Page 2 - one too much"));

      Labelling as critical since a small programming error might hang the whole app without any way of knowing the reason.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                mgrev Mikael Grev
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: