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

PIT: PrinterJob.print throws NPE when called without printDialog

XMLWordPrintable

    • 2d
    • tiger
    • generic
    • generic


      This is a regression with the PIT build
      /net/capra/export12/java2d/builds/01-Apr-03.tiger/

      The testcase fails on win32 and solaris platforms.

      STEPS TO REPRODUCE:
      1. Copy over and compile the attached testcase.
      2. java Test

      Output:
      calling pj.print
      java.lang.NullPointerException
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1100)
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1024)
              at Test.main(Test.java:14)

      The testcase worked fine with the last promoted build: mantis beta (b19)

      I've discussed with Jennifer Godinez on this.

            jgodinez Jennifer Godinez (Inactive)
            kbalasubsunw Kannan Balasubramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: