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

Test5036904.sh fails on linux under gnome, 1.4.2_07b01

XMLWordPrintable

    • b01
    • x86
    • linux

      Test case for bug fix 5036904 fails on linux when runing tests on Gnome.
      (Suse 9.1 pro)

      testcase at
      /net/shiva.sfbay/test/MyTestArea/JDK1.4.2/workspace_142/test/CTE_REGTEST/Generic/5036904

      fix INT into 1.4.2_07b01

      the fix was for the motif look and feel.
      However the testcase doesn't seem to explicitly look
      for this L&F. Testcase fails when not run in motif mode.

      Looks like the comments should be removed from testcode ?
      removing the comments around this code lets the testcase pass
      as it runs in motif mode.

      try {
                  className = System.getProperty( "swing.defaultlaf" );
                  if (className == null) {
      className = UIManager.getSystemLookAndFeelClassName();
                  }
      /*
         UIManager.setLookAndFeel( "com.sun.java.swing.plaf.motif.MotifLookAndFeel");
      */
         UIManager.setLookAndFeel(className);
      } catch( Exception e ) {}


      testcase passes when run under Solaris (CDE mode at the time)
      ###@###.### 10/5/04 19:41 GMT

            asaha Abhijit Saha
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: