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

Native method Java_sun_awt_motif_MWindowPeer_setState has uninitialized variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • client-libs
    • None
    • beta
    • generic
    • generic

      Native method Java_sun_awt_motif_MWindowPeer_setState in file
      src/solaris/native/sun/awt/awt_TopLevel.c of the Kestrel 1.3K
      release has an unitialized variable bug.

      The uninitialized variable is local variable "Window w;",
      Which gets passed to function setStateHints() before it is
      given a value.

      Since setStateHints() executes a branch depending on the
      value of the 'w' argument, this is definitely a bug.

      The same bug exists in the J2SDK 1.2.2 release in function
      Java_sun_awt_motif_MFramePeer_setState in file
      src/solaris/native/sun/awt/awt_Frame.c.

            ehawkessunw Eric Hawkes (Inactive)
            cahorton Catherine Horton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: