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

Frame.setIconImage will hang if image file does not exist

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.4
    • Not verified

      I noticed that if you set the icon of a frame to a
      non exisisting image it tends to hang the AWT. It looks
      like you end up waiting indefinitely for the image to show
      up even though it doesn't exist.

      I've attached a little test program. You will notice that
      it hangs when calling show():

          "main" (TID:0xee3000a0, sys_thread_t:0x74528) prio=5
              java.lang.Object.wait(Object.java)
              sun.awt.image.ImageRepresentation.reconstruct(ImageRepresentation.java:94)
              sun.awt.motif.MFramePeer.setIconImage(MFramePeer.java:87)
              sun.awt.motif.MFramePeer.<init>(MFramePeer.java:68)
              sun.awt.motif.MToolkit.createFrame(MToolkit.java:88)
              java.awt.Frame.addNotify(Frame.java:82)
              java.awt.Window.show(Window.java:93)
              Test.main(Test.java:17)


      [aim 4/23/96]
      It should probably throw an exception instead.

            flar Jim Graham
            amfowler Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: