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

REGRESSION:JCK14-interactive/javax_swing,windows draw incorrectly on MAX, resize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Duplicate
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      solaris_8, windows_98, windows_2000

      Description

      When the window is maximized or resized, only part of the screen gets redraw (from top left to center). The lower and right side of the screen is gray. It passed using b15.

      JDK : 1.4.1-b16 ( passed on b15)
      JCK : jck1.4
      Platform[s] : Windows 2K, ME and Solaris 8 Sparc/Intel were tested.
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Failing Test :
        all javax_swing interactive tests.

      Test source location:
      =====================
      /net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_swing/interactive/*.java

      jtr file location:
      ===================


      How to reproduce:
      ====================
      1. Run the attached script
          JCheckBox.ksh
      2. Maximize or resize the windows.
           You will see top left side of the image gets redraw and the lower right is gray


      --------Script START---------------------
      #!/bin/ksh
      SWITCH=${1+$@}
      JDK=/net/jdk/export/disk8/local.java/jdk1.4.1
      #JDK=/java/re/jdk/1.4.1/promoted/rc/b15/binaries
      TESTBASE=/net/jdk/export/disk8/local.java/jck1.4
      JCK=${TESTBASE}/JCK-runtime-14
      executeClass="javasoft.sqe.tests.api.javax.swing.interactive.JCheckBox.JCheckBoxTests"
      executeClassArgs="-TestCaseID JCheckBoxTest0001"
      executeTestURL="-TestDirURL file:///net/jtgb4u4c.sfbay/export/sail16/JCK/jck14/JCK-runtime-14/tests/api/javax_swing/interactive/JCheckBoxTests.html#JCheckBox"
      headless=false
      case `uname -s` in
        SunOS)
         ARCH=`uname -p`
         case $ARCH in
          sparc)
            sharedJDK=$JDK/solaris-sparc
            ;;
          i386)
            sharedJDK=$JDK/solaris-i586
            ;;
         esac
         ;;
        Linux)
         sharedJDK=$JDK/linux-i586
         ARCH=linux
         ;;
      esac


      CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
      DISPLAY=${DISPLAY-$HOST:0.0}

      if `echo $SWITCH|grep "\-d64" >/dev/null`; then
        sharedJDK=$JDK/solaris-sparcv9
        LD_LIBRARY_PATH=${JCK}/lib/sparcv9
      else
        LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
      fi


      PATH=$JDK/bin:$sharedJDK/bin:$PATH

      export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH


      echo
      java ${SWITCH} -version
      echo
      ((x=0))
      while (( $x != 1 )) do
      echo testing $x

      java ${SWITCH} -verify -Xfuture -DDISPLAY="" -Djava.awt.headless=$headless -Djava.security.policy=${JCK}/lib/jck.policy -Djava.security.auth.policy=${JCK}/lib/jck.auth.policy -Djava.security.auth.login.config=${JCK}/lib/jck.auth.login.config -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}

      if [[ $? == "95" ]]; then
         echo pass
      else
         echo failed
      fi

      (( x = $x + 1 ))


      done



      --------Script END----------------------

      Test output:
      =============

      Specific Machine Info:
      =====================
      SunOS jtg-s129 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-60
      SunOS jtg-i116 5.8 Generic_108529-13 i86pc i386 i86pc





        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ssisunw Ssi Ssi (Inactive)
              Reporter:
              tacheung Tak Wing Cheung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: