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

Image.getScaledImage throws NPE in headless mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      sparc
    • OS:
      solaris_8

      Description

      Image.getScaledImage throws a NullPointerException when run in headless (-Djava.awt.headless=true) mode. This is a regression which first appeared in Tiger build b05. This problem causes the following JCK test to fail:
      api/java_awt/java2d/image/BufferedImage/index.html#GetTesttestCase11.

      Attached is a very simple stand-alone test that illustrates the problem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pjr Paul Rank (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: