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

JCK1.5-runtime-interactive: XToolkit FileDialog does not work as expected

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_8, solaris_9
    • Verification:
      Verified

      Description

      Name: icR10030 Date: 10/07/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0
      JCK : JCK1.5-runtime
      Platform[s] : Linux, Solaris
      switch/Mode : -client -Xfuture
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]:
                  api/java_awt/interactive/ComponentTests.html#ComponentTests [ComponentTest0002, ComponentTest0003]
                  api/java_awt/interactive/FileDialogTests.html#FileDialogTests [FileDialogTest0001, FileDialogTest0002, FileDialogTest0003,
                                                                                 FileDialogTest0004, FileDialogTest0005, FileDialogTest0006]

      2 JCK1.5-runtime tests fail on JDK1.5.0

      XToolkit FileDialog does not work as expected: the value of the "Filter" has wrong affect on "Files" list.
      If "Filter" == "*" - all files are listed in "Files" list, OK.
      If "Filter" == "any other value" - the "Files" list is empty.

      The bug is filed due to evaluation of 4784704:
      "Name: dkR10074 Date: 10/06/2003


      The bug was filed against an open file dialog of JDK1.4.2, where
      the Motif toolkit was implemented only. Actually, the bug is fixed
      and not reproducible with Motif toolkit.
      The mentioned by ###@###.### bug is reproducible with
      XToolkit only, which was introduced since JDK1.5.
      Thus, the new bug should be filed.
      ###@###.### 2003-10-06"

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15/tests/api/java_awt/interactive/ComponentTests.java
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15/tests/api/java_awt/interactive/FileDialogTests.java

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

      How to reproduce:
      =================
      1. Run the following class
      2. Set "Filter" to not "*" but, for example, ".*" - the "Files" list becomes empty

      import java.awt.*;
      public class FileDialogTest {
          public static void main(String args[]) {
              Frame f = new Frame("Owner");
              FileDialog fd = new FileDialog(f, "Test FileDialog", FileDialog.LOAD);
              fd.setVisible(true);
          }
      }

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

      Specific machine info:
      ======================
      Hostname: novo48
      OS: Solaris 9 (sparc)
      Hostname: linux-13
      OS: Solaris Redhat 7.3
      Hostname: linux-10
      OS: Solaris 8 (x86)


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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dcherepanov Dmitry Cherepanov
              Reporter:
              ichesunw Iche Iche (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: