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

RegTest-test javax/swing/LookAndFeel/InstallProperty.java fails

XMLWordPrintable



      Name: iaR10016 Date: 07/22/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b11, JDK1.5.0-b10
                       (this is a new test which is absent in the previous JDK builds)
      Testbase : RegTest-test
      Platform[s] : Windows XP Pro, Windows XP Home
                       (not reproducible on other systems)
      Falling tests : javax/swing/LookAndFeel/InstallProperty.java

      RegTest-test javax/swing/LookAndFeel/InstallProperty.java test fails with JDK1.5.0-b11
      on Windows XP Home, Windows XP Pro if "Theme" display property is set to "Windows XP".
      The test passes on the same machines if Theme is "Windows classic".

      This is a new test which is absent in previous JDKs. This test fails with the same
      output if I run it with JDK1.4.2-b28.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/LookAndFeel/InstallProperty.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b11/regtest/win32/winXP_PRO_-client_linux-16/workDir/test/javax/swing/LookAndFeel/InstallProperty.jtr

      How to reproduce:
      =================
      Set "Theme" display property to "Windows XP" and then
      run the following script
      (you may need to change it's variables):

      --- script start ---
      #!/bin/sh
      export TESTJAVA="C:/j2sdk1.5.0"
      TEST_BASE_PATH="H:/java/regtest.tiger/test"
      rm -rf InstallProperty.*
      cp $TEST_BASE_PATH/javax/swing/LookAndFeel/InstallProperty.java .
      echo "Test compiling..."
      $TESTJAVA/bin/javac InstallProperty.java
      echo "Test execution..."
      $TESTJAVA/bin/java InstallProperty
      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(15/1224)----------
      java.lang.RuntimeException: testSetRolloverEnabled: class=javax.swing.JButton RolloverEnabled setting overridden by com.sun.java.swing.plaf.windows.WindowsLookAndFeel
           at InstallProperty.signalTestFailure(InstallProperty.java:418)
           at InstallProperty.testSetRolloverEnabled(InstallProperty.java:183)
           at InstallProperty.main(InstallProperty.java:47)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
           at java.lang.Thread.run(Thread.java:534)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: testSetRolloverEnabled: class=javax.swing.JButton RolloverEnabled setting overridden by
      com.sun.java.swing.plaf.windows.WindowsLookAndFeel
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: testSetRolloverEnabled: class=javax.swing.JButton RolloverEnabled setting overridden by com.sun.java.swing.plaf.windows.WindowsLookAndFeel
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: testSetRolloverEnabled: class=javax.swing.JButton RolloverEnabled setting overridden by
      com.sun.java.swing.plaf.windows.WindowsLookAndFeel

      Specific machine info:
      ======================
      Hostname: linux-16
      OS: Windows XP Pro

      Hostname: linux-21
      OS: Windows XP Home

      ======================================================================

            leifs Leif Samuelsson (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: